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._ReverseReferenceProperty Class Reference
Inheritance diagram for google.appengine.ext.db._ReverseReferenceProperty:
google.appengine.ext.db.Property google.appengine.ext.db.djangoforms._ReverseReferenceProperty

Public Member Functions

def __init__
 
def __get__
 
def __set__
 
- Public Member Functions inherited from google.appengine.ext.db.Property
def __init__
 
def __property_config__
 
def __get__
 
def __set__
 
def default_value
 
def validate
 
def empty
 
def get_value_for_datastore
 
def get_updated_value_for_datastore
 
def make_value_from_datastore_index_value
 
def make_value_from_datastore
 
def datastore_type
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.ext.db.Property
 verbose_name
 
 name
 
 default
 
 required
 
 validator
 
 choices
 
 indexed
 
 creation_counter
 
 model_class
 
- Static Public Attributes inherited from google.appengine.ext.db.Property
int creation_counter = 0
 
 data_type = str
 

Detailed Description

The inverse of the Reference property above.

We construct reverse references automatically for the model to which
the Reference property is pointing to create the one-to-many property for
that model.  For example, if you put a Reference property in model A that
refers to model B, we automatically create a _ReverseReference property in
B called a_set that can fetch all of the model A instances that refer to
that instance of model B.

Constructor & Destructor Documentation

def google.appengine.ext.db._ReverseReferenceProperty.__init__ (   self,
  model,
  prop 
)
Constructor for reverse reference.

Constructor does not take standard values of other property types.

Args:
  model: Model class that this property is a collection of.
  property: Name of foreign property on referred model that points back
to this properties entity.

Member Function Documentation

def google.appengine.ext.db._ReverseReferenceProperty.__get__ (   self,
  model_instance,
  model_class 
)
Fetches collection of model instances of this collection property.
def google.appengine.ext.db._ReverseReferenceProperty.__set__ (   self,
  model_instance,
  value 
)
Not possible to set a new collection.

The documentation for this class was generated from the following file: