ó
ÂlUdc           @   s   d  e  f d „  ƒ  YZ d S(   t   FieldRegistryc           B   s2   e  Z i  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   t	   _fieldcls(   t   selft   fieldcls(    (    sD   /var/www/html/phendo-backend/phendo_python/audit_log/registration.pyt   __init__   s    c         C   s8   |  j  j j |  j i  ƒ j | g  ƒ } | j | ƒ d  S(   N(   t	   __class__t	   _registryt
   setdefaultR   t   append(   R   t   modelt   fieldt   reg(    (    sD   /var/www/html/phendo-backend/phendo_python/audit_log/registration.pyt	   add_field   s    'c         C   s%   |  j  j j |  j i  ƒ j | g  ƒ S(   N(   R   R   R   R   t   get(   R   R	   (    (    sD   /var/www/html/phendo-backend/phendo_python/audit_log/registration.pyt
   get_fields   s    c         C   s   | |  j  j j |  j i  ƒ k S(   N(   R   R   R   R   (   R   R	   (    (    sD   /var/www/html/phendo-backend/phendo_python/audit_log/registration.pyt   __contains__   s    (   t   __name__t
   __module__R   R   R   R   R   (    (    (    sD   /var/www/html/phendo-backend/phendo_python/audit_log/registration.pyR       s
   			N(   t   objectR    (    (    (    sD   /var/www/html/phendo-backend/phendo_python/audit_log/registration.pyt   <module>   t    