
    # i                        d dl mZ d dlmZ  G d dej                        Z G d dej                        Z G d dej                        Z G d	 d
ej                        Z G d dej                        Z	 G d dej                        Z
 G d dej                        Z G d dej                        Z G d dej                        Z G d dej                        Z G d dej                        Z G d dej                        Z G d dej                        Z G d dej                        Z G d d ej                        Z G d! d"ej                        Z G d# d$ej                        Z G d% d&ej                        Zy')(    )models)slugifyc                        e Zd Z ej                  d      Z ej                  dd      Z ej                         Z	 ej                  dd      Z G d d	      Z fd
Zd Z xZS )College   
max_lengthT)r	   uniquer   zLower numbers appear first)default	help_textc                       e Zd ZddgZy)College.Metapriority_ordernameN__name__
__module____qualname__ordering     $/var/www/apihucms/colleges/models.pyMetar   
   s    $f-r   r   c                 p    | j                   st        | j                        | _         t        |   |i | y N)slugr   r   supersave)selfargskwargs	__class__s      r   r   zCollege.save   s+    yy		*DId%f%r   c                     | j                   S r   r   r   s    r   __str__zCollege.__str__       yyr   )r   r   r   r   	CharFieldr   	SlugFieldr   	TextFieldshort_descriptionPositiveIntegerFieldr   r   r   r&   __classcell__)r"   s   @r   r   r      sc    6s+D6s48D(((*0V00FbcN. .&
r   r   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                         Z ej                  d      Z ej                  d      Zd Zy)	HeroSectionhero_section	on_deleterelated_namer   r   zcollege_images/hero	upload_toc                 4    d| j                   j                   S )NzHero Section for colleger   r%   s    r   r&   zHeroSection.__str__   s    "4<<#4#4"566r   N)r   r   r   r   OneToOneFieldr   CASCADEr8   r(   titler*   subtitle
ImageFieldbackground_imageadmission_infor&   r   r   r   r/   r/      sj    "f""7fnnSabGF,Ev!H(v((3HI%V%%5N7r   r/   c                   v    e Zd Z ej                  eej                  d      Z ej                  d      Z	d Z
y)Badgebadgesr1   d   r   c                     | j                   S r   textr%   s    r   r&   zBadge.__str__#   r'   r   N)r   r   r   r   
ForeignKeyr/   r:   r0   r(   rF   r&   r   r   r   rA   rA      s4    $6$$[FNNYabL6s+Dr   rA   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                  d      Zd Zy)	AboutSectionabout_sectionr1   r   r   zcollege_images/aboutr4   c                 4    d| j                   j                   S )NzAbout Section for r7   r%   s    r   r&   zAboutSection.__str__+   s    #DLL$5$5#677r   N)r   r   r   r   r9   r   r:   r8   r(   r;   r=   imager&   r   r   r   rI   rI   &   sG    "f""7fnnSbcGF,EF(>?E8r   rI   c                       e Zd Z ej                  eej                  d      Z ej                         Z	 ej                  d      Z G d d      Zd Zy)	AboutContentcontent_paragraphsr1   r   r   c                       e Zd ZdgZy)AboutContent.MetaorderNr   r   r   r   r   rR   3   	    9r   r   c                 b    d| j                    d| j                  j                  j                   S )Nz
Paragraph  for )rS   rJ   r8   r   r%   s    r   r&   zAboutContent.__str__6   s,    DJJ<uT-?-?-G-G-L-L,MNNr   N)r   r   r   r   rG   rI   r:   rJ   r*   contentr,   rS   r   r&   r   r   r   rN   rN   .   sO    %F%%lfnn[opMf G'F''2E Or   rN   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                  d      Z
 ej                         Z ej                  d      Zd Zy)	DirectorSectiondirector_sectionr1   r   r   zcollege_images/directorsr4   c                 N    d| j                    d| j                  j                    S )Nz
Director: rV   )r   r8   r%   s    r   r&   zDirectorSection.__str__@   s$    DII;eDLL,=,=+>??r   N)r   r   r   r   r9   r   r:   r8   r(   r   r;   r*   messager=   rL   r&   r   r   r   rY   rY   9   sj    "f""7fnnSefG6s+DF,Ef GF(BCE@r   rY   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                         Z ej                  d      Zd Zy)	ProgramsSectionprograms_sectionr1   r   r   FrP   c                 4    d| j                   j                   S )NzPrograms Section for r7   r%   s    r   r&   zProgramsSection.__str__I   s    &t||'8'8&9::r   N)r   r   r   r   r9   r   r:   r8   r(   r;   r*   descriptionBooleanFieldhas_doctoral_programsr&   r   r   r   r^   r^   C   sW    "f""7fnnSefGF,E"&""$K/F//>;r   r^   c                      e Zd ZdZ ej
                  eej                  d      Z ej                  d      Z
 ej
                  dej                  ddd      Z ej                  d	e
      Z ej                  d      Z G d d      Zd Zy)Program))UGUndergraduate)PGPostgraduate)DPDiplomaprogramsr1   r   r   zcourses.CourseT)r2   r3   nullblank   )r	   choicesr   rP   c                       e Zd ZddgZy)Program.Metaprogram_typerS   Nr   r   r   r   r   rr   Z   s    "G,r   r   c                 B    | j                    d| j                          dS )Nz ())r   get_program_type_displayr%   s    r   r&   zProgram.__str__]   s#    ))Bt<<>?qAAr   N)r   r   r   PROGRAM_TYPESr   rG   r^   r:   r_   r(   r   coursers   r,   rS   r   r&   r   r   r   re   re   L   s    M )v((FNNakl6s+DV/6>>XbimuyzF#6##q-HL'F''2E- -Br   re   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                         Z ej                         Z ej                  d      Zd Zy)	WhyChooseSectionwhy_choose_sectionr1   r   r   zcollege_images/why_chooser4   c                 4    d| j                   j                   S )NzWhy Choose Section for r7   r%   s    r   r&   zWhyChooseSection.__str__g       ():):(;<<r   N)r   r   r   r   r9   r   r:   r8   r(   r;   r*   ra   
conclusionr=   rL   r&   r   r   r   rz   rz   `   sg    "f""7fnnSghGF,E"&""$K!!!#JF(CDE=r   rz   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                  d      Z G d d      Zd	 Zy
)Featurefeaturesr1   r   r   r   rP   c                       e Zd ZdgZy)Feature.MetarS   Nr   r   r   r   r   r   o   rT   r   r   c                     | j                   S r   rE   r%   s    r   r&   zFeature.__str__r   r'   r   N)r   r   r   r   rG   rz   r:   r{   r(   rF   r,   rS   r   r&   r   r   r   r   r   j   sR    ***+;v~~dno6s+D'F''2E r   r   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                         Zd Zy)FacultySectionfaculty_sectionr1   r   r   c                 4    d| j                   j                   S )NzFaculty Section for r7   r%   s    r   r&   zFacultySection.__str__z   s    %dll&7&7%899r   Nr   r   r   r   r9   r   r:   r8   r(   r;   r*   ra   r&   r   r   r   r   r   u   sD    "f""7fnnSdeGF,E"&""$K:r   r   c                      e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                  ddd      Z
 ej                  ddd      Z ej                  dd      Z ej                  d	      Zd
 Zy)Facultyfaculty_membersr1   r   r   T)r	   rm   rn   )rm   rn   zcollege_images/facultyr4   c                 8    | j                    d| j                   S Nz - )r   positionr%   s    r   r&   zFaculty.__str__   s    ))C//r   N)r   r   r   r   rG   r   r:   r   r(   r   r   
departmentr*   qualificationsr=   rL   r&   r   r   r   r   r   }   s    'f''&.._pqO6s+Dv3TFH!!!St4HJ%V%%4t<NF(@AE0r   r   c                   v    e Zd Z ej                  eej                  d      Z ej                  d      Z	d Z
y)TestimonialSectiontestimonial_sectionr1   r   r   c                 4    d| j                   j                   S )NzTestimonial Section for r7   r%   s    r   r&   zTestimonialSection.__str__   s    )$,,*;*;)<==r   Nr   r   r   r   r9   r   r:   r8   r(   r;   r&   r   r   r   r   r      s4    "f""7fnnShiGF,E>r   r   c                   
   e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                  d      Z
 ej                  d      Z ej                         Z ej                  d      Zd Zy)	Testimonialtestimonialsr1   r   r   zcollege_images/testimonialsr4   c                      d| j                    S )NzTestimonial from r$   r%   s    r   r&   zTestimonial.__str__   s    "499+..r   N)r   r   r   r   rG   r   r:   r   r(   r   rx   companyr*   testimonialr=   rL   r&   r   r   r   r   r      s}    +&++,>&..guv6s+DV-Ff#.G"&""$KF(EFE/r   r   c                   v    e Zd Z ej                  eej                  d      Z ej                  d      Z	d Z
y)RecruitersSectionrecruiters_sectionr1   r   r   c                 4    d| j                   j                   S )NzRecruiters Section for r7   r%   s    r   r&   zRecruitersSection.__str__   r}   r   Nr   r   r   r   r   r      s4    "f""7fnnSghGF,E=r   r   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                  d      Zd Zy)		Recruiter
recruitersr1   r   r   zcollege_images/recruitersr4   c                     | j                   S r   r$   r%   s    r   r&   zRecruiter.__str__   r'   r   N)r   r   r   r   rG   r   r:   r   r(   r   r=   logor&   r   r   r   r   r      sI    ***+<eqr6s+D6'BCDr   r   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                         Zd Zy)InfrastructureSectioninfrastructure_sectionr1   r   r   c                 4    d| j                   j                   S )NzInfrastructure Section for r7   r%   s    r   r&   zInfrastructureSection.__str__   s    ,T\\->->,?@@r   Nr   r   r   r   r   r      sE    "f""7fnnSklGF,E"&""$KAr   r   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                         Z ej                  d      Z ej                  d      Z G d	 d
      Zd Zy)Facility
facilitiesr1   r   r   zcollege_images/facilitiesr4   r   rP   c                       e Zd ZdgZdZy)Facility.MetarS   
FacilitiesN)r   r   r   r   verbose_name_pluralr   r   r   r   r      s    9*r   r   c                 `    | j                    d| j                  j                  j                   S r   )r;   r   r8   r   r%   s    r   r&   zFacility.__str__   s*    **S!<!<!D!D!I!I JKKr   N)r   r   r   r   rG   r   r:   r   r(   r;   r*   ra   r=   rL   r,   rS   r   r&   r   r   r   r   r      sy    .V../DPVP^P^myzF,E"&""$KF(CDE'F''2E+ +Lr   r   N)	django.dbr   django.utils.textr   Modelr   r/   rA   rI   rN   rY   r^   re   rz   r   r   r   r   r   r   r   r   r   r   r   r   <module>r      s5    %fll "7&,, 7FLL 86<< 8	O6<< 	O@fll @;fll ;Bfll B(=v|| =	fll 	:V\\ :	0fll 	0> >	/&,, 	/= = AFLL ALv|| Lr   