[Django]-Django form wizard: global name 'request' is not defined in done() method

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
)
👤Rohan

Leave a comment