← Back
Editing: reverse_related.cpython-311.pyc
� �|�e�+ � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z G d� d e � � Z G d � de� � Z G d� d e� � Z G d� de� � ZdS )al "Rel objects" for related fields. "Rel objects" (for lack of a better name) carry information about the relation modeled by a related field and provide some utility functions. They're stored in the ``remote_field`` attribute of the field. They also act as reverse fields for the purposes of the Meta API because they're the closest concept currently available. � )� exceptions)�cached_property)� make_hashable� )�BLANK_CHOICE_DASH)�FieldCacheMixinc � � e Zd ZdZdZdZdZdZdZdZ dd�Z ed� � � Zed� � � Z ed� � � Zed � � � Zed � � � Zed� � � Zed� � � Zed � � � Zed� � � Zd� Zd� Zed� � � Zd� Zed� � � Zd� Zd� Zdeddfd�Zd� Zd� Z d� Z!d� Z"d d�Z#d d�Z$d� Z%dS )!�ForeignObjectRelz� 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. TFNc � � || _ || _ || _ || _ |�i n|| _ || _ || _ d| _ d| _ d S )NFT) �field�model�related_name�related_query_name�limit_choices_to�parent_link� on_delete�symmetrical�multiple)�selfr �tor r r r r s �I/usr/lib/python3/dist-packages/django/db/models/fields/reverse_related.py�__init__zForeignObjectRel.__init__'