o
    ÕÝ—f9  ã                   @   sÖ  d dl mZ ddlmZmZmZmZmZmZm	Z	m
Z
mZmZmZ G dd„ dejƒZG dd„ dejƒZG dd	„ d	ejƒZG d
d„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZej ee¡ ej ee¡ ej ee¡ ej ee¡ ej e¡ ej e¡ ej e	e¡ ej e
e¡ ej ee¡ ej ee¡ ej ee¡ d S )!é    )Úadminé   )ÚUserÚCityÚCategoryÚPlaceÚSocialMediaLinkÚ
PlaceImageÚBookingÚFavoritePlaceÚEmergencyNumberÚ	ContactUsÚAdvertisementc                   @   ó   e Zd ZeZdZdS )ÚSocialMediaLinkInliner   N)Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚextra© r   r   ú2/var/www/newdalilibackend/backend/mainapp/admin.pyr      ó    r   c                   @   r   )ÚPlaceImageInliner   N)r   r   r   r	   r   r   r   r   r   r   r      r   r   c                   @   ó   e Zd ZeZdZdZdS )ÚPlaceInlineForCategoryr   TN©r   r   r   r   r   r   Úshow_change_linkr   r   r   r   r      ó    r   c                   @   r   )ÚPlaceInlineForCityr   TNr   r   r   r   r   r      r   r   c                   @   r   )ÚFavoritePlaceInliner   TN)r   r   r   r   r   r   r   r   r   r   r   r       r   r    c                   @   s    e Zd ZeegZdZdZdZdS )Ú
PlaceAdmin)Úname_enÚcityÚcategoryÚuserÚratingÚ
created_atÚ
updated_at)r"   Úname_arÚname_kuÚdescription_arÚdescription_enÚdescription_kuÚcity__name_enÚcity__name_arÚcity__name_kuÚcategory__name_enÚcategory__name_arÚcategory__name_ku)r#   r$   r&   r'   r(   N)	r   r   r   r   r   ÚinlinesÚlist_displayÚsearch_fieldsÚlist_filterr   r   r   r   r!   $   s
    r!   c                   @   ó   e Zd ZegZdZdZdZdS )Ú	CityAdmin©r"   r'   r(   ©r"   r)   r*   ©r'   r(   N)r   r   r   r   r4   r5   r6   r7   r   r   r   r   r9   +   ó
    r9   c                   @   r8   )ÚCategoryAdminr:   r;   r<   N)r   r   r   r   r4   r5   r6   r7   r   r   r   r   r>   2   r=   r>   c                   @   r8   )Ú	UserAdmin)ÚusernameÚemailÚphone_numberÚpreferred_languageÚis_staffr'   r(   )r@   rA   rB   r.   r/   r0   )rC   rD   r'   r(   N)r   r   r   r    r4   r5   r6   r7   r   r   r   r   r?   9   r=   r?   c                   @   sN   e Zd ZdZdZdZdgZdddifddd	ifd
ddifdddiffZdZdS )ÚAdvertisementAdmin)Útitle_arr%   Ú	is_activeÚexpiry_dater'   r(   )rF   Útitle_enÚtitle_kuÚuser__usernameÚcities__name_enÚcities__name_arÚcities__name_ku)rG   rH   Úcitiesr%   NÚfields)r%   rF   rI   rJ   ÚlinkrG   ÚDates)rH   r'   r(   ÚCities)rO   ÚMedia)Úimager<   )	r   r   r   r5   r6   r7   Úautocomplete_fieldsÚ	fieldsetsÚreadonly_fieldsr   r   r   r   rE   @   s&    ÿÿÿÿörE   c                   @   ó   e Zd ZdZdZdZdS )ÚBookingAdmin)Úplacer%   Úsubjectr'   r(   )Úplace__name_enÚplace__name_arÚplace__name_kurK   r\   r<   N©r   r   r   r5   r6   r7   r   r   r   r   rZ   V   r   rZ   c                   @   rY   )ÚFavoritePlaceAdmin)r%   r[   r'   r(   )rK   r]   r^   r_   r<   Nr`   r   r   r   r   ra   \   r   ra   c                   @   rY   )ÚEmergencyNumberAdmin)rF   rB   r'   r(   )rF   rI   rJ   rB   r<   Nr`   r   r   r   r   rb   b   r   rb   c                   @   rY   )ÚContactUsAdmin)Ú	user_namerB   rA   Úis_readr'   r(   )rd   rB   rA   Úmessage)re   r'   r(   Nr`   r   r   r   r   rc   h   r   rc   N) Údjango.contribr   Úmodelsr   r   r   r   r   r	   r
   r   r   r   r   ÚTabularInliner   r   r   r   r    Ú
ModelAdminr!   r9   r>   r?   rE   rZ   ra   rb   rc   ÚsiteÚregisterr   r   r   r   Ú<module>   s6    4