4👍
✅
You can refer the request
as self.request
in class based views and form wizard.
Update your line to
location = Location( #-------v
manager = User.objects.get(username=self.request.user.username)
#more stuff
)
Source:stackexchange.com