a
    ;Xh                     @   s$   d dl mZ d dlmZ dd ZdS )    )Notification)NotificationFormc                 C   s:   | j jr(tjj| j ddd}t }ng }d }||dS )NF)useris_readz-created_at)notificationsnotification_form)r   is_authenticatedr   objectsfilterorder_byr   )requestr   form r   I/var/www/viveiro_mudafortebrasil/apps/notifications/context_processors.pyr      s    r   N)Zapps.notifications.modelsr   apps.notifications.formsr   r   r   r   r   r   <module>   s   