U
    –mhÇ  ã                   @   sÊ   d dl mZ d dlmZ ddlmZmZmZm	Z	m
Z
 G dd„ dejƒZG dd„ dejƒZe e¡G d	d
„ d
eƒƒZe e¡G dd„ dejƒƒZe e	¡G dd„ dejƒƒZe e
¡G dd„ dejƒƒZdS )é    )Úadmin)Ú	UserAdminé   )ÚUserÚUserProfileÚ
DepartmentÚRoleÚUserRolec                   @   s   e Zd ZeZdZdZdS )ÚUserProfileInlineFÚuserN)Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚ
can_deleteÚfk_name© r   r   ú//var/www/html/Adtlas/src/apps/accounts/admin.pyr
      s   r
   c                   @   s   e Zd ZeZdZdZdS )ÚUserRoleInliner   r   N)r   r   r   r	   r   Úextrar   r   r   r   r   r   
   s   r   c                   @   sn   e Zd ZeegZdddddgZdddgZdddgZdgZ	dd	d
ifdd	difdd	diffZ
ddddœffZdS )r   ÚemailÚ
first_nameÚ	last_nameÚ	is_activeÚdate_joinedÚis_staffz-date_joinedZAuthenticationÚfields)r   ÚpasswordzPersonal Information)r   r   ÚPermissions)r   r   Úis_superuserzRequired Information)Úwide)r   r   r   Ú	password1Ú	password2)Úclassesr   N)r   r   r   r
   r   ÚinlinesÚlist_displayÚlist_filterÚsearch_fieldsÚorderingÚ	fieldsetsÚadd_fieldsetsr   r   r   r   r      s.   

 ÿ ÿ ÿùþÿr   c                   @   s   e Zd ZdddgZddgZdS )ÚDepartmentAdminÚnameÚcoder   N)r   r   r   r%   r'   r   r   r   r   r+   *   s   
r+   c                   @   s(   e Zd ZddddgZddgZddgZdS )Ú	RoleAdminr,   r-   Úlevelr   N)r   r   r   r%   r&   r'   r   r   r   r   r.   /   s   r.   c                   @   s   e Zd ZdddgZddgZdS )ÚUserRoleAdminr   Úroler   N)r   r   r   r%   r&   r   r   r   r   r0   5   s   
r0   N)Zdjango.contribr   Zdjango.contrib.auth.adminr   ZBaseUserAdminÚmodelsr   r   r   r   r	   ÚStackedInliner
   ÚTabularInliner   ÚregisterÚ
ModelAdminr+   r.   r0   r   r   r   r   Ú<module>   s   