Sometimes in theclean()
, cleanFOO()
or save()
methods of a Django form, we need to have additional form instance attributes available. A sample case for this is having the request.userobject
available. Here is a simple taster-driven example.