← Back
Editing: options.cpython-311.pyc
� �|�e�� � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z mZ d dlm Z d dlmZmZmZmZ d dlmZ d d lmZmZ d d lmZ d dlmZ d dlmZmZ d d lm Z e!� � Z"dZ#dZ$dZ%d� Z&d� Z' G d� d� � Z(dS )� N)�defaultdict)�apps)�settings)�FieldDoesNotExist�ImproperlyConfigured)�connections)� AutoField�Manager�OrderWrt�UniqueConstraint)�PathInfo)� ImmutableList� OrderedSet)�cached_property)� import_string)�camel_case_to_spaces�format_lazy)�override� zyThe return type of '%s' should never be mutated. If you want to manipulate this list for your own use, make a copy first.)�verbose_name�verbose_name_plural�db_table�ordering�unique_together�permissions� get_latest_by�order_with_respect_to� app_label� db_tablespace�abstract�managed�proxy� swappable�auto_created�index_togetherr �default_permissions�select_on_save�default_related_name�required_db_features�required_db_vendor�base_manager_name�default_manager_name�indexes�constraintsc � � | sdS t | t t f� � st �| d }t |t t f� � s| f} t d� | D � � � � S # t $ r | cY S w xY w)z� option_together can be either a tuple of tuples, or a single tuple of two strings. Normalize it to a tuple of tuples, so that calling code can uniformly expect that. r r c 3 �4 K � | ]}t |� � V � �d S �N)�tuple)�.0�ots �:/usr/lib/python3/dist-packages/django/db/models/options.py� <genexpr>z%normalize_together.<locals>.<genexpr>5 s( � � � �9�9�2�U�2�Y�Y�9�9�9�9�9�9� )� isinstancer2 �list� TypeError)�option_together� first_elements r5 �normalize_togetherr= &