o
    Gß»iK  ã                   @   sj   d dl mZ ddlmZmZ 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é   )ÚRaffleEventÚRaffleEntryc                   @   s&   e Zd ZeZdZg d¢ZdZdgZdS )ÚRaffleEntryInliner   )Úregistration_codeÚ	full_nameÚ
scanned_atÚ
ip_addressTú-scanned_atN)	Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚextraÚreadonly_fieldsÚ
can_deleteÚordering© r   r   ú8/var/www/html/smartRegister/backend/apps/raffle/admin.pyr      s    
r   c                   @   s@   e Zd Zg d¢ZddgZddgZg d¢ZegZdd„ Z	d	e	_
d
S )ÚRaffleEventAdmin)ÚnameÚslugÚ	is_activeÚis_archivedÚentry_countÚ
created_atr   r   r   r   )r   r   Ú
updated_atr   c                 C   s   |j S )N)r   )ÚselfÚobjr   r   r   r      s   zRaffleEventAdmin.entry_countÚEntriesN)r   r   r   Úlist_displayÚlist_filterÚsearch_fieldsr   r   Úinlinesr   Úshort_descriptionr   r   r   r   r      s    
r   c                   @   s0   e Zd Zg d¢ZdgZddgZddgZdgZdS )	ÚRaffleEntryAdmin)r   r   Úeventr	   r
   r'   r   r   r	   r
   r   N)r   r   r   r!   r"   r#   r   r   r   r   r   r   r&      s    
r&   N)Údjango.contribr   Úmodelsr   r   ÚTabularInliner   ÚregisterÚ
ModelAdminr   r&   r   r   r   r   Ú<module>   s    