App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.ext.db.djangoforms.ModelFormMetaclass Class Reference
Inheritance diagram for google.appengine.ext.db.djangoforms.ModelFormMetaclass:

Public Member Functions

def __new__
 

Detailed Description

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.

Member Function Documentation

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: