The metaclass for the ModelForm class defined below.
This is our analog of Django's own ModelFormMetaclass. (We
can't conveniently subclass that class because there are quite a few
differences.)
See the docs for ModelForm below for a usage example.
def google.appengine.ext.db.djangoforms.ModelFormMetaclass.__new__ |
( |
|
cls, |
|
|
|
class_name, |
|
|
|
bases, |
|
|
|
attrs |
|
) |
| |
Constructor for a new ModelForm class instance.
The signature of this method is determined by Python internals.
All Django Field instances are removed from attrs and added to
the base_fields attribute instead. Additional Field instances
are added to this based on the Datastore Model class specified
by the Meta attribute.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/ext/db/djangoforms.py