4 ms·
If you look further down: http://django-vanilla-views.org/#inheritance-hierachy-django-style http://django-vanilla-views.org/#inheritance-hierachy-django... It
by damon_c 13y ago
If you look further down: http://django-vanilla-views.org/#inheritance-hierachy-django-style http://django-vanilla-views.org/#inheritance-hierachy-django...
It looks like that view which is a "CreateView" uses a ModelForm as its form. ModelForm's save methods return an instance of their Model.
In this case, account is the instance of the Account model which is created when that form is saved.
Edit - Here's the relevant Django doc: https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-save-method https://docs.djangoproject.com/en/dev/topics/forms/modelform...