ó
=ÚdUc           @   sf   d  d l  m Z d  d l m Z d  d l m Z d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d S(	   iÿÿÿÿ(   t   models(   t   now(   t   RichTextFieldt   Institutionc           B   s`   e  Z d d d d f Z e j d d	 ƒ Z e j d d
 d e ƒ Z d „  Z d d d „  ƒ  YZ RS(   u   uu
   Universityu   cu   Collegeu   iu   Industryu   nu   National Laboratoryt
   max_lengthid   i   t   choicesc         C   s   |  j  S(   N(   t   name(   t   self(    (    s$   /var/www/djphys/colloquium/models.pyt   __unicode__   s    t   Metac           B   s   e  Z d  g Z RS(   R   (   t   __name__t
   __module__t   ordering(    (    (    s$   /var/www/djphys/colloquium/models.pyR	      s   (   u   uu
   University(   u   cu   College(   u   iu   Industry(   u   nu   National Laboratory(    (	   R
   R   t   INSTITUTION_KINDSR    t	   CharFieldR   t   kindR   R	   (    (    (    s$   /var/www/djphys/colloquium/models.pyR      s   		t   Talkc           B   sù   e  Z e j d  e ƒ Z e j d d ƒ Z e j d d ƒ Z e	 d e
 d e
 ƒ Z e j d e
 ƒ Z e j e d e
 ƒZ e j d d d d	 d
 d d e
 d e
 ƒ Z e j d e
 d  d ƒ Z e j d e
 d  d ƒ Z d „  Z d „  Z d d d „  ƒ  YZ RS(   t   defaultR   iÿ   iÈ   t   nullt   blankt	   upload_tot   talkst   height_fieldt   heightt   width_fieldt   widthi    c         C   s   d |  j  |  j f S(   Nu	   %s â€” %s(   t   speakert   title(   R   (    (    s$   /var/www/djphys/colloquium/models.pyR   "   s    c         C   s   |  j  d k r |  j S|  j  S(   Nt   TBA(   R   R   (   R   (    (    s$   /var/www/djphys/colloquium/models.pyt   display%   s    R	   c           B   s   e  Z d  g Z RS(   s   -date(   R
   R   R   (    (    (    s$   /var/www/djphys/colloquium/models.pyR	   *   s   (    (   R
   R   R    t	   DateFieldR   t   dateR   R   R   R   t   Truet   abstractt   URLFieldt   urlt
   ForeignKeyR   t   instt
   ImageFieldt   pict   SmallIntegerFieldR   R   R   R   R	   (    (    (    s$   /var/www/djphys/colloquium/models.pyR      s   		N(	   t	   django.dbR    t   django.utils.timezoneR   t   mezzanine.core.fieldsR   t   ModelR   R   (    (    (    s$   /var/www/djphys/colloquium/models.pyt   <module>   s   