class documentation
class OneToOneRel(ManyToOneRel): (source)
Used by OneToOneField to store information about the relation. ``_meta.get_fields()`` returns this class to provide access to the field flags for the reverse relation.
Method | __init__ |
Undocumented |
Instance Variable | multiple |
Undocumented |
Inherited from ManyToOneRel
:
Method | __getstate__ |
Undocumented |
Method | get |
Return the Field in the 'to' object to which this relationship is tied. |
Method | set |
Set the related field's name, this is not available until later stages of app loading, so set_field_name is called from set_attributes_from_rel() |
Instance Variable | field |
Undocumented |
Property | identity |
Undocumented |
Inherited from ForeignObjectRel
(via ManyToOneRel
):
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | get |
Undocumented |
Method | get |
Return the name of the cache key to use for storing an instance of the forward model on the reverse model. |
Method | get |
Return choices with a default blank choices included, for use as <select> choices for this field. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | is |
Should the related object be hidden? |
Class Variable | auto |
Undocumented |
Class Variable | concrete |
Undocumented |
Class Variable | editable |
Undocumented |
Class Variable | empty |
Undocumented |
Class Variable | is |
Undocumented |
Class Variable | null |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | limit |
Undocumented |
Instance Variable | model |
Undocumented |
Instance Variable | on |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | related |
Undocumented |
Instance Variable | related |
Undocumented |
Instance Variable | symmetrical |
Undocumented |
Property | db |
Undocumented |
Property | hidden |
Undocumented |
Property | many |
Undocumented |
Property | many |
Undocumented |
Property | name |
Undocumented |
Property | one |
Undocumented |
Property | one |
Undocumented |
Property | path |
Undocumented |
Property | related |
Undocumented |
Property | remote |
Undocumented |
Property | target |
When filtering against this relation, return the field on the remote model against which the filtering should happen. |
Inherited from FieldCacheMixin
(via ManyToOneRel
, ForeignObjectRel
):
Method | delete |
Undocumented |
Method | get |
Undocumented |
Method | is |
Undocumented |
Method | set |
Undocumented |