o
    fsµiA  ã                   @   sX   d dl mZ ddlmZmZ e e¡G dd„ dejƒƒZe e¡G dd„ dejƒƒZdS )	é    )Úadminé   )ÚApparelItemÚCollectionRecordc                   @   s8   e Zd Zg d¢ZddgZdgZddgZdd„ Zd	e_d
S )ÚApparelItemAdmin)ÚnameÚeventÚ	is_activeÚcollection_countÚ
created_atr	   r   r   r   Ú
updated_atc                 C   s
   |j  ¡ S )N)ÚcollectionsÚcount)ÚselfÚobj© r   ú9/var/www/html/smartRegister/backend/apps/apparel/admin.pyr
      s   
z!ApparelItemAdmin.collection_countÚCollectionsN)	Ú__name__Ú
__module__Ú__qualname__Úlist_displayÚlist_filterÚsearch_fieldsÚreadonly_fieldsr
   Úshort_descriptionr   r   r   r   r      s    
r   c                   @   s(   e Zd Zg d¢ZdgZg d¢ZdgZdS )ÚCollectionRecordAdmin)Ú	full_nameÚregistration_codeÚapparel_itemÚpayment_statusÚcollected_atÚrecorded_byr   )r   r   Úemailr!   N)r   r   r   r   r   r   r   r   r   r   r   r      s
    
r   N)	Údjango.contribr   Úmodelsr   r   ÚregisterÚ
ModelAdminr   r   r   r   r   r   Ú<module>   s    