w10schools
Login
Register
In current category
Only my posts
Home
Tutorials
HTML, CSS
HTML, HTML5
CSS, CSS3
XML
JavaScript, AJAX
PHP
Ruby on Rails
Ruby
Rails
ASP.NET
ASP
C# .NET
Java
JSP
Databases
MySQL
MSSQL Server
Oracle
Web Server
Windows
Linux
Apache
IIS
Design
Dreamweaver
Flash
Photoshop
Fireworks
CorelDRAW
Illustrator
References
HTML
Bootstrap
CSS
CSS Selectors
Sass
JavaScript
Mobile Apps
Cordova
Ruby on Rails
Ruby
Rails
PHP
Function
Language
CodeIgniter
Phalcon
PHPUnit
Symfony
Drupal
Yii
Laravel
Perl
Perl
Python
Python
Django
NumPy
Pandas
scikit-image
scikit-learn
Statsmodels
Matplotlib
Lua
Lua
C, C++
C
C++
Server
Docker
Apache HTTP Server
Nginx
Database
PostgreSQL
Big Data
TensorFlow
Game Development
Phaser
LÖVE
Articles
News
General
Website Promotion
Online Advertising
Make Money Online
Editorials
Interviews
Web Roundups
Resources
Design
Fonts
Graphics
Vectors
Templates
UI (User Interface)
Brushes
Patterns, Backgrounds
Textures
Web Development
HTML, CSS
XML
JavaScript, AJAX
Ruby on Rails
PHP
Java
.NET
Python
Perl
Flash
Mobile Application Development
Mobile Development Tools
Swift
Online Services
Online Storage
Web Hosting
Tools
Generators
Edit
Toggle Dropdown
In Place Editing
Advanced Editing
References
Python
Django
API
Editing mixins
Language
Default
Markdown
views.generic.edit.ModelFormMixin.form_invalid()
form_invalid()
Renders a response, providing the invalid form as context.
Links:
https://docs.djangoproject.com/en/1.10/ref/class-based-views/mixins-editing/#django.views.generic.edit.ModelFormMixin.form_invalid
doc_Django
2016-10-09 18:41:08
Comments
Leave a Comment
Please
login
to continue.
Popular Articles
views.generic.edit.ModelFormMixin.form_valid()
form_valid(form) Saves the form instance, sets the current object for the view, and redirects to get_success_url().
views.generic.edit.ModelFormMixin
class django.views.generic.edit.ModelFormMixin A form mixin that works on ModelForms, rather than a standalone form. Since this is a subclass of S
views.generic.edit.ModelFormMixin.model
model A model class. Can be explicitly provided, otherwise will be determined by examining self.object or queryset.
views.generic.edit.ModelFormMixin.fields
fields A list of names of fields. This is interpreted the same way as the Meta.fields attribute of ModelForm. This is a required attribute if you
views.generic.edit.ModelFormMixin.get_form_class()
get_form_class() Retrieve the form class to instantiate. If form_class is provided, that class will be used. Otherwise, a ModelForm will be instan
Return to View
Please login to continue.