ó
bWc           @   s  d  d l  m Z d  d l m Z d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d	 e j f d
 „  ƒ  YZ d e j f d „  ƒ  YZ	 d e j f d „  ƒ  YZ
 d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   models(   t	   IconFieldt   PatientFeedbackc           B   s`   e  Z e j d  d d d ƒ Z e j ƒ  Z e j d  d d d ƒ Z d d d „  ƒ  YZ d „  Z	 RS(	   t
   max_lengthid   t   verbose_names   Patient Names   Feedback Datet   Metac           B   s   e  Z d  Z RS(   s   Patient Feedback(   t   __name__t
   __module__t   verbose_name_plural(    (    (    s   /var/www/ygc/content/models.pyR   	   s   c         C   s   |  j  S(   N(   t   name(   t   self(    (    s   /var/www/ygc/content/models.pyt   __unicode__   s    (    (
   R   R   R    t	   CharFieldR	   t	   TextFieldt   feedbackt   whenR   R   (    (    (    s   /var/www/ygc/content/models.pyR      s
   t   Testc           B   sH   e  Z e j d  d d d ƒ Z e j ƒ  Z d d d „  ƒ  YZ d „  Z RS(   R   id   R   s	   Test NameR   c           B   s   e  Z d  g Z RS(   R	   (   R   R   t   ordering(    (    (    s   /var/www/ygc/content/models.pyR      s   c         C   s   |  j  S(   N(   R	   (   R
   (    (    s   /var/www/ygc/content/models.pyR      s    (    (	   R   R   R    R   R	   R   t   descriptionR   R   (    (    (    s   /var/www/ygc/content/models.pyR      s   t   FoldedBlockc           B   sk   e  Z e j d  d d d ƒ Z e j d d ƒ Z e j d  d d d ƒ Z e j d  d d d ƒ Z d „  Z	 RS(   R   id   R   s   Block Titles   Block Contents   Button Texts   Button Linkc         C   s   |  j  S(   N(   t   title(   R
   (    (    s   /var/www/ygc/content/models.pyR      s    (
   R   R   R    R   R   R   t   contentt   button_textt   button_linkR   (    (    (    s   /var/www/ygc/content/models.pyR      s
   t   CallToActionc           B   st   e  Z e ƒ  Z e j d  d d d ƒ Z e j d d ƒ Z e j d  d d d ƒ Z	 e j d  d d d ƒ Z
 d „  Z RS(   R   id   R   s   Block Titles   Block Contents   Button Texts   Button Linkc         C   s   |  j  S(   N(   R   (   R
   (    (    s   /var/www/ygc/content/models.pyR   )   s    (   R   R   R   t   iconR    R   R   R   R   R   R   R   (    (    (    s   /var/www/ygc/content/models.pyR   "   s   	t   Doctorc           B   s7  e  Z e j d  d d d ƒ Z e j d d ƒ Z e j d d d e ƒ Z	 e j d d d e ƒ Z
 e j d d	 d e ƒ Z e j d d
 d e ƒ Z e j d d d e ƒ Z e j d d d e ƒ Z e j d d d e ƒ Z e j d d d e ƒ Z e j d d d e ƒ Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   R   id   R   s   Doctor Namet	   upload_tot   doctors   Doctors Brieft   blanks   About This Doctors   Undergraduate Trainings   Postgraduate Trainings   Current NHS Appointmentss   Private Practice Hospitalss   Positions of Officet   Researcht   Publicationsc         C   s   d |  j  S(   Ns   /doctor/%s/(   t   id(   R
   (    (    s   /var/www/ygc/content/models.pyt   get_absolute_url9   s    c         C   s   t  j j d |  ƒ S(   NR   (   t
   DoctorLinkt   objectst   filter(   R
   (    (    s   /var/www/ygc/content/models.pyt	   get_links<   s    c         C   s   t  j j d |  ƒ S(   NR   (   t   DoctorQualificationR#   R$   (   R
   (    (    s   /var/www/ygc/content/models.pyt   get_qualifications?   s    c         C   s   t  j j d |  ƒ S(   NR   (   t   DoctorMembershipR#   R$   (   R
   (    (    s   /var/www/ygc/content/models.pyt   get_membershipsB   s    c         C   s   |  j  S(   N(   R	   (   R
   (    (    s   /var/www/ygc/content/models.pyR   E   s    (   R   R   R    R   R	   t
   ImageFieldt   photoR   t   Truet   brieft   aboutt   undergraduate_trainingt   postgraduate_trainingt   appointmentst   private_practicest   office_locationst   researcht   publicationsR!   R%   R'   R)   R   (    (    (    s   /var/www/ygc/content/models.pyR   ,   s    				R"   c           B   sP   e  Z e j d  ƒ Z e j d d d d ƒ Z e j d d d d ƒ Z d „  Z RS(   s   content.DoctorR   id   R   s	   Link Namei–   s   External Linkc         C   s   |  j  S(   N(   R	   (   R
   (    (    s   /var/www/ygc/content/models.pyR   M   s    (	   R   R   R    t
   ForeignKeyR   R   R	   t   linkR   (    (    (    s   /var/www/ygc/content/models.pyR"   H   s   R&   c           B   s˜   e  Z e j d  ƒ Z e j d d d d d e ƒ Z e j d d d d d e ƒ Z e j d d d d	 d e ƒ Z	 e j d d d d
 d e ƒ Z
 d „  Z RS(   s   content.DoctorR   i
   R   s   Month of CompletionR   i   s   Year of Completionid   s   Qualification Names   Qualification Locationc         C   s   |  j  S(   N(   t   qualification(   R
   (    (    s   /var/www/ygc/content/models.pyR   W   s    (   R   R   R    R6   R   R   R,   t   montht   yearR8   t   locationR   (    (    (    s   /var/www/ygc/content/models.pyR&   P   s   R(   c           B   sP   e  Z e j d  ƒ Z e j d d d d ƒ Z e j d d d d ƒ Z d „  Z RS(   s   content.DoctorR   id   R   s   Membership Namei–   s   External Linkc         C   s   |  j  S(   N(   R	   (   R
   (    (    s   /var/www/ygc/content/models.pyR   _   s    (	   R   R   R    R6   R   R   R	   R7   R   (    (    (    s   /var/www/ygc/content/models.pyR(   Z   s   t   Partnerc           B   sY   e  Z e j d  d d d ƒ Z e j d d ƒ Z e j d  d d d d e ƒ Z d „  Z	 RS(	   R   id   R   s   Partner NameR   t   partners   External LinkR   c         C   s   |  j  S(   N(   R	   (   R
   (    (    s   /var/www/ygc/content/models.pyR   g   s    (
   R   R   R    R   R	   R*   t   logoR,   R7   R   (    (    (    s   /var/www/ygc/content/models.pyR<   b   s   N(   t	   django.dbR    t   fontawesome.fieldsR   t   ModelR   R   R   R   R   R"   R&   R(   R<   (    (    (    s   /var/www/ygc/content/models.pyt   <module>   s   
	

