Undocumented
Constant | RECURSIVE_RELATIONSHIP_CONSTANT |
Undocumented |
Class | ForeignKey |
Provide a many-to-one relation by adding a column to the local model to hold the remote value. |
Class | ForeignObject |
Abstraction of the ForeignKey relation to support multi-column relations. |
Class | ManyToManyField |
Provide a many-to-many relation by using an intermediary model that holds two ForeignKey fields pointed at the two sides of the relation. |
Class | OneToOneField |
No summary |
Class | RelatedField |
Base class that all relational fields inherit from. |
Function | create_many_to_many_intermediary_model |
Undocumented |
Function | lazy_related_operation |
No summary |
Function | resolve_relation |
Transform relation into a model or fully-qualified model string of the form "app_label.ModelName", relative to scope_model. |
Schedule function
to be called once model
and all related_models
have been imported and registered with the app registry. function
will
be called with the newly-loaded model classes as its positional arguments,
plus any optional keyword arguments.
The model
argument must be a model class. Each subsequent positional
argument is another model, or a reference to another model - see
resolve_relation()
for the various forms these may take. Any relative
references will be resolved relative to model
.
This is a convenience wrapper for Apps.lazy_model_operation
- the app
registry model used is the one found in model._meta.apps
.
Transform relation into a model or fully-qualified model string of the form "app_label.ModelName", relative to scope_model.