a
    [f%                     @   s0   d dl mZ d dlmZmZ G dd deZdS )    )
AppCommand)DEFAULT_DB_ALIASconnectionsc                       s,   e Zd ZdZdZ fddZdd Z  ZS )CommandzLPrints the SQL statements for resetting sequences for the given app name(s).Tc                    s    t  | |jdtdd d S )Nz
--databasezNNominates a database to print the SQL for. Defaults to the "default" database.)defaulthelp)superadd_argumentsadd_argumentr   )selfparser	__class__ C:\Users\91910\OneDrive\Desktop\vts_admin_rebuild-master\vts\Lib\site-packages\django/core/management/commands/sqlsequencereset.pyr	      s    zCommand.add_argumentsc                 K   s\   |j d u rd S t|d  }|jdd}|j| j|}|sR|d dkrR| jd d|S )NZdatabaseT)Zinclude_auto_created	verbosity   zNo sequences found.
)	Zmodels_moduler   Z
get_modelsopsZsequence_reset_sqlstylestderrwritejoin)r   Z
app_configoptions
connectionmodelsZ
statementsr   r   r   handle_app_config   s    
zCommand.handle_app_config)__name__
__module____qualname__r   Zoutput_transactionr	   r   __classcell__r   r   r   r   r      s
   r   N)Zdjango.core.management.baser   Z	django.dbr   r   r   r   r   r   r   <module>   s   