
    >Tf:                         d dl mZ d dlmZ d dlT d dlmZ dZ G d de          Z	 G d d	e          Z
 G d
 de          ZdS )    )forms)gettext)*)CSVModelForm)GroupImportFormUserImportFormTokenImportFormc                   (    e Zd Z G d d          ZdS )r   c                       e Zd ZeZdZdS )GroupImportForm.Meta)namedescriptionN)__name__
__module____qualname__Groupmodelfields     </var/www/html/netbox-4.1.3/netbox/users/forms/bulk_import.pyMetar      s        (r   r   N)r   r   r   r   r   r   r   r   r      s<        ) ) ) ) ) ) ) ) ) )r   r   c                   8     e Zd Z G d d          Z fdZ xZS )r   c                       e Zd ZeZdZdS )UserImportForm.Meta)username
first_name	last_nameemailpasswordis_staff	is_activeis_superuserN)r   r   r   Userr   r   r   r   r   r   r      s        
r   r   c                     | j                             | j                            d                      t	                      j        |i |S )Nr    )instanceset_passwordcleaned_datagetsupersave)selfargskwargs	__class__s      r   r+   zUserImportForm.save   sE    ""4#4#8#8#D#DEEEuww|T,V,,,r   )r   r   r   r   r+   __classcell__)r/   s   @r   r   r      s`        
 
 
 
 
 
 
 
- - - - - - - - -r   r   c                   r    e Zd Z ej         ed          d ed                    Z G d d          ZdS )r	   KeyFz;If no key is provided, one will be generated automatically.)labelrequired	help_textc                       e Zd ZeZdZdS )TokenImportForm.Meta)userkeywrite_enabledexpiresr   N)r   r   r   Tokenr   r   r   r   r   r   r7   ,   s        Lr   r   N)r   r   r   r   	CharField_r9   r   r   r   r   r	   r	   %   sz        
%/ahh!QRR  CM M M M M M M M M Mr   r	   N)djangor   django.utils.translationr   r>   users.modelsutilities.formsr   __all__r   r   r	   r   r   r   <module>rD      s          1 1 1 1 1 1     ( ( ( ( ( () ) ) ) )l ) ) )- - - - -\ - - - 	M 	M 	M 	M 	Ml 	M 	M 	M 	M 	Mr   