Ñò
‡‘vLc           @   sY   d  d k  Z  d  d k l Z d  d k l Z d  d k l Z d e i f d „  ƒ  YZ	 d S(   iÿÿÿÿN(   t   models(   t   ugettext_lazy(   t   lt   Noticec           B   s‡   e  Z e i d  d e ƒZ e i e d ƒ ƒ Z e i	 e d ƒ d e d e d e ƒZ
 d „  Z d „  Z d „  Z d	 d d
 „  ƒ  YZ RS(   s   pootle_app.Directoryt   db_indext   Messaget   Addedt   auto_now_addt   nullc         C   s   |  i  S(   N(   t   message(   t   self(    (    s9   /var/www/Pootle/local_apps/pootle_notifications/models.pyt   __unicode__"   s    c         C   s   t  |  i i d |  i ƒ S(   Ns
   notices/%d(   R   t	   directoryt   pootle_patht   id(   R
   (    (    s9   /var/www/Pootle/local_apps/pootle_notifications/models.pyt   get_absolute_url%   s    c         C   s   |  i  i t i t i ƒ ƒ S(   N(   t   addedt   strftimet   localet   nl_langinfot   D_T_FMT(   R
   (    (    s9   /var/www/Pootle/local_apps/pootle_notifications/models.pyt   get_date(   s    t   Metac           B   s   e  Z d  g Z RS(   s   -added(   t   __name__t
   __module__t   ordering(    (    (    s9   /var/www/Pootle/local_apps/pootle_notifications/models.pyR   +   s   (    (   R   R   R    t
   ForeignKeyt   TrueR   t	   TextFieldt   _R	   t   DateTimeFieldR   R   R   R   R   (    (    (    s9   /var/www/Pootle/local_apps/pootle_notifications/models.pyR      s   '			(
   R   t	   django.dbR    t   django.utils.translationR   R   t   pootle_misc.baseurlR   t   ModelR   (    (    (    s9   /var/www/Pootle/local_apps/pootle_notifications/models.pyt   <module>   s   