Ë
    º2Úi  ã                   ó¸   — d Z ddlmZ ddlmZ ddlmZ ddlmZ  edd«      Z	d„ Z
 ed	«      e
_         G d
„ de«      Zej                  j                  e	e«       y)z! Django notifications admin file é    )Úadmin)Úgettext_lazy)ÚAbstractNotificationAdmin)Ú
load_modelÚnotificationsÚNotificationc                 ó(   — |j                  d¬«       y )NT)Úunread)Úupdate)Ú
modeladminÚrequestÚquerysets      úJ/var/www/html/acx/venv/lib/python3.12/site-packages/notifications/admin.pyÚmark_unreadr      s   € Ø‡O�O˜4€OÕ ó    z%Mark selected notifications as unreadc                   ó4   ‡ — e Zd ZdZdZdZdZegZˆ fd„Z	ˆ xZ
S )ÚNotificationAdmin)Ú	recipient)Úaction_object_urlÚactor_object_urlÚtarget_object_url)r   ÚactorÚlevelÚtargetr
   Úpublic)r   r
   r   Ú	timestampc                 óL   •— t         t        | �  |«      }|j                  d«      S )Nr   )Úsuperr   Úget_querysetÚprefetch_related)Úselfr   ÚqsÚ	__class__s      €r   r   zNotificationAdmin.get_queryset   s&   ø€ ÜÔ$ dÑ8¸ÓAˆØ×"Ñ" 7Ó+Ð+r   )Ú__name__Ú
__module__Ú__qualname__Úraw_id_fieldsÚreadonly_fieldsÚlist_displayÚlist_filterr   Úactionsr   Ú__classcell__)r#   s   @r   r   r      s*   ø„ Ø"€MØT€Oð;€Là=€KØˆm€G÷,ð ,r   r   N)Ú__doc__Údjango.contribr   Údjango.utils.translationr   Únotifications.base.adminr   Úswapperr   r   r   Úshort_descriptionr   ÚsiteÚregister© r   r   ú<module>r6      sW   ðÙ 'å  Ý 1Ý >Ý á˜/¨>Ó:€ò!á ,Ð-TÓ U€Ô ô
,Ð1ô 
,ð ‡
�
× Ñ �LÐ"3Õ 4r   