I use the code below to add a custom form in Django Admin:
class MyAdmin(admin.ModelAdmin):
form = MyForm
However, the form has an overridden constructor:
def __init__(self, author, *args, **kwargs):
super(MyForm, self).__init__(*args, **kwargs)
self.author = author
How could I pass the Admin current user to the form constructor?