admin: fix get_form_class

This commit is contained in:
Jens Langhammer
2020-09-29 11:42:34 +02:00
parent 9724ded194
commit 760352202e
3 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class InheritanceCreateView(CreateAssignPermView):
)
except StopIteration as exc:
raise Http404 from exc
return model.form(model)
return model().form
def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
kwargs = super().get_context_data(**kwargs)