views.generic.edit.ModelFormMixin.model
  • References/Python/Django/API/Editing mixins

model A model class. Can be explicitly provided, otherwise will be determined by examining self.object or

2025-01-10 15:47:30
views.generic.edit.FormMixin.get_form_kwargs()
  • References/Python/Django/API/Editing mixins

get_form_kwargs() Build the keyword arguments required to instantiate the form. The initial

2025-01-10 15:47:30
views.generic.edit.ModelFormMixin.get_form_class()
  • References/Python/Django/API/Editing mixins

get_form_class() Retrieve the form class to instantiate. If form_class is provided, that class will be used. Otherwise

2025-01-10 15:47:30
views.generic.edit.FormMixin.form_valid()
  • References/Python/Django/API/Editing mixins

form_valid(form) Redirects to get_success_url().

2025-01-10 15:47:30
views.generic.edit.FormMixin.get_success_url()
  • References/Python/Django/API/Editing mixins

get_success_url() Determine the URL to redirect to when the form is successfully validated. Returns success_url

2025-01-10 15:47:30
views.generic.edit.ModelFormMixin.get_success_url()
  • References/Python/Django/API/Editing mixins

get_success_url() Determine the URL to redirect to when the form is successfully validated. Returns django.views.generic

2025-01-10 15:47:30
views.generic.edit.FormMixin.form_class
  • References/Python/Django/API/Editing mixins

form_class The form class to instantiate.

2025-01-10 15:47:30
views.generic.edit.ModelFormMixin.success_url
  • References/Python/Django/API/Editing mixins

success_url The URL to redirect to when the form is successfully processed. success_url

2025-01-10 15:47:30
views.generic.edit.DeletionMixin
  • References/Python/Django/API/Editing mixins

class django.views.generic.edit.DeletionMixin Enables handling of the DELETE http action.

2025-01-10 15:47:30
views.generic.edit.ModelFormMixin.form_valid()
  • References/Python/Django/API/Editing mixins

form_valid(form) Saves the form instance, sets the current object for the view, and redirects to get_success_url()

2025-01-10 15:47:30