[Fixed]-Cant recover form

1👍

ModelAdmin has ‘get_form’ method:

...
        default_form = self.get_form(request)
        form = default_form(request.POST, request.FILES, instance=None)
...

Take look docs:
https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_form

Leave a comment