class documentation

Used by ForeignObject to store information about the relation. ``_meta.get_fields()`` returns this class to provide access to the field flags for the reverse relation.

Method __eq__ Undocumented
Method __getstate__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method get_accessor_name Undocumented
Method get_cache_name Return the name of the cache key to use for storing an instance of the forward model on the reverse model.
Method get_choices Return choices with a default blank choices included, for use as <select> choices for this field.
Method get_extra_restriction Undocumented
Method get_internal_type Undocumented
Method get_joining_columns Undocumented
Method get_lookup Undocumented
Method get_path_info Undocumented
Method is_hidden Should the related object be hidden?
Method set_field_name 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()
Class Variable auto_created Undocumented
Class Variable concrete Undocumented
Class Variable editable Undocumented
Class Variable empty_strings_allowed Undocumented
Class Variable is_relation Undocumented
Class Variable null Undocumented
Instance Variable field Undocumented
Instance Variable field_name Undocumented
Instance Variable limit_choices_to Undocumented
Instance Variable model Undocumented
Instance Variable multiple Undocumented
Instance Variable on_delete Undocumented
Instance Variable parent_link Undocumented
Instance Variable related_name Undocumented
Instance Variable related_query_name Undocumented
Instance Variable symmetrical Undocumented
Property db_type Undocumented
Property hidden Undocumented
Property identity Undocumented
Property many_to_many Undocumented
Property many_to_one Undocumented
Property name Undocumented
Property one_to_many Undocumented
Property one_to_one Undocumented
Property path_infos Undocumented
Property related_model Undocumented
Property remote_field Undocumented
Property target_field When filtering against this relation, return the field on the remote model against which the filtering should happen.

Inherited from FieldCacheMixin:

Method delete_cached_value Undocumented
Method get_cached_value Undocumented
Method is_cached Undocumented
Method set_cached_value Undocumented
def __eq__(self, other): (source)

Undocumented

def __getstate__(self): (source)
def __hash__(self): (source)

Undocumented

def __init__(self, field, to, related_name=None, related_query_name=None, limit_choices_to=None, parent_link=False, on_delete=None): (source)
def __repr__(self): (source)

Undocumented

def get_accessor_name(self, model=None): (source)

Undocumented

def get_cache_name(self): (source)

Return the name of the cache key to use for storing an instance of the forward model on the reverse model.

def get_choices(self, include_blank=True, blank_choice=BLANK_CHOICE_DASH, limit_choices_to=None, ordering=()): (source)

Return choices with a default blank choices included, for use as <select> choices for this field. Analog of django.db.models.fields.Field.get_choices(), provided initially for utilization by RelatedFieldListFilter.

def get_extra_restriction(self, alias, related_alias): (source)

Undocumented

def get_internal_type(self): (source)

Undocumented

def get_joining_columns(self): (source)

Undocumented

def get_lookup(self, lookup_name): (source)

Undocumented

def get_path_info(self, filtered_relation=None): (source)

Undocumented

def is_hidden(self): (source)

Should the related object be hidden?

def set_field_name(self): (source)

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()

auto_created: bool = (source)

Undocumented

concrete: bool = (source)

Undocumented

editable: bool = (source)

Undocumented

empty_strings_allowed: bool = (source)

Undocumented

is_relation: bool = (source)

Undocumented

Undocumented

Undocumented

limit_choices_to = (source)

Undocumented

Undocumented

on_delete = (source)

Undocumented

parent_link = (source)

Undocumented

related_name = (source)

Undocumented

related_query_name = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

@property
remote_field = (source)

Undocumented

@property
target_field = (source)

When filtering against this relation, return the field on the remote model against which the filtering should happen.