| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/core/management/commands/__pycache__/ |
Upload File : |
�
�|�e�( � �� � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm Z d dl
mZ d dlm
Z
mZ d dlZdZn
# e$ r dZY nw xY w d dlZdZn
# e$ r dZY nw xY w G d � d
e� � Z G d� de� � ZdS )
� N)�apps)�serializers)�BaseCommand�CommandError)�parse_apps_and_model_labels)�DEFAULT_DB_ALIAS�routerTFc � � e Zd ZdS )�ProxyModelWarningN)�__name__�
__module__�__qualname__� � �J/usr/lib/python3/dist-packages/django/core/management/commands/dumpdata.pyr r s � � � � � ��Dr r c � � e Zd ZdZd� Zd� ZdS )�Commandz�Output the contents of the database as a fixture of the given format (using each model's default manager unless --all is specified).c � � |� dddd�� � |� ddd� � � |� d
t d�� � |� d
t d� � � |� dddg d�� � |� dddd�� � |� dddd�� � |� ddddd�� � |� d d!d"�#� � |� d$d%d&�'� � d S )(N�argszapp_label[.ModelName]�*zHRestricts dumped data to the specified app_label or app_label.ModelName.)�metavar�nargs�helpz--format�jsonz7Specifies the output serialization format for fixtures.)�defaultr z--indentz>Specifies the indent level to use when pretty-printing output.)�typer z
--databasezXNominates a specific database to dump fixtures from. Defaults to the "default" database.z-ez --exclude�appendzhAn app_label or app_label.ModelName to exclude (use multiple --exclude to exclude multiple apps/models).)�actionr r z--natural-foreign�
store_true�use_natural_foreign_keysz/Use natural foreign keys if they are available.)r �destr z--natural-primary�use_natural_primary_keysz/Use natural primary keys if they are available.z-az--all�use_base_managerz�Use Django's base manager to dump all models stored in the database, including those that would otherwise be filtered or modified by a custom manager.z--pks�primary_keysz�Only dump objects with given primary keys. Accepts a comma-separated list of keys. This option only works when you specify one model.)r! r z-oz--outputz.Specifies file to which the output is written.)r )�add_argument�intr )�self�parsers r �
add_argumentszCommand.add_arguments"