← Back
Editing: loaddata.cpython-311.pyc
� �|�e(9 � �n � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z d dlmZ d dl mZ d dlmZ d dlmZmZ d dlmZ d d lmZ d d lmZmZmZmZmZmZ d dlm Z d dl!Z!dZ"n # e#$ r d Z"Y nw xY w d dl$Z$dZ%n # e#$ r d Z%Y nw xY wdZ& G d� de� � Z' G d� dej( � � Z)d� Z*dS )� N)�product)�apps)�settings)�serializers)�ImproperlyConfigured)�BaseCommand�CommandError)�no_style)�parse_apps_and_model_labels)�DEFAULT_DB_ALIAS� DatabaseError�IntegrityError�connections�router�transaction)�cached_propertyTF�-c �~ � e Zd ZdZdZd� Zd� Zd� Zd� Z e j d�� � d � � � Zed � � � Z d� ZdS )�Commandz.Installs the named fixture(s) in the database.zcNo database fixture specified. Please provide the path of at least one fixture in the command line.c �8 � |� dddd�� � |� dt d�� � |� d d d�� � |� d dddd�� � |� dddg d�� � |� dd�� � d S )N�args�fixture�+zFixture labels.)�metavar�nargs�helpz --databasezXNominates a specific database to load fixtures into. Defaults to the "default" database.)�defaultr z--app� app_labelz,Only look for fixtures in the specified app.)�destr z--ignorenonexistentz-i� store_true�ignorez[Ignores entries in the serialized data for fields that do not currently exist on the model.)�actionr r z-ez --exclude�appendzKAn app_label or app_label.ModelName to exclude. Can be used multiple times.)r"