
    i                     T   d dl mZ d dlmZmZmZmZmZmZm	Z	m
Z
mZmZmZmZmZmZmZmZmZ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')(    )serializers)CollegeHeroSectionBadgeAboutSectionAboutContentDirectorSectionProgramsSectionProgramWhyChooseSectionFeatureFacultySectionFacultyTestimonialSectionTestimonialRecruitersSection	RecruiterInfrastructureSectionFacilityc                        e Zd Z G d d      Zy)BadgeSerializerc                       e Zd ZeZdgZy)BadgeSerializer.MetatextN)__name__
__module____qualname__r   modelfields     )/var/www/apihucms/colleges/serializers.pyMetar   
   s    r!   r#   Nr   r   r   r#   r    r!   r"   r   r   	        r!   r   c                   4    e Zd Z edd      Z G d d      Zy)HeroSectionSerializerTmany	read_onlyc                       e Zd ZeZg dZy)HeroSectionSerializer.Meta)titlesubtitlebackground_imageadmission_infobadgesN)r   r   r   r   r   r   r    r!   r"   r#   r,      s    Vr!   r#   N)r   r   r   r   r1   r#   r    r!   r"   r'   r'      s    $$7FW Wr!   r'   c                        e Zd Z G d d      Zy)AboutContentSerializerc                       e Zd ZeZdgZy)AboutContentSerializer.MetacontentN)r   r   r   r   r   r   r    r!   r"   r#   r5      s    r!   r#   Nr$   r    r!   r"   r3   r3      s     r!   r3   c                   4    e Zd Z edd      Z G d d      Zy)AboutSectionSerializerTr(   c                       e Zd ZeZg dZy)AboutSectionSerializer.Meta)r-   imagecontent_paragraphsN)r   r   r   r   r   r   r    r!   r"   r#   r:      s    9r!   r#   N)r   r   r   r3   r<   r#   r    r!   r"   r8   r8      s    /TTJ: :r!   r8   c                        e Zd Z G d d      Zy)DirectorSectionSerializerc                       e Zd ZeZg dZy)DirectorSectionSerializer.Meta)namer-   messager;   N)r   r   r   r	   r   r   r    r!   r"   r#   r@   "   s    6r!   r#   Nr$   r    r!   r"   r>   r>   !   s    7 7r!   r>   c                       e Zd Z ej                  dd      Z ej                  dd      Z ej                         Z	 ej                  dd      Z
d Z G d d      Zy	)
ProgramSerializerz	course.idT)sourcer*   zcourse.titlezcourse.durationc                 |    |j                   r0|j                   j                  rd|j                   j                   dS y )Nz/academics/programs/courses//)courseslug)selfobjs     r"   get_course_linkz!ProgramSerializer.get_course_link,   s.    ::#**//1#**//1B!DDr!   c                       e Zd ZeZg dZy)ProgramSerializer.Meta)rA   program_type	course_idcourse_titlecourse_linkdurationN)r   r   r   r   r   r   r    r!   r"   r#   rN   1   s    ar!   r#   N)r   r   r   r   IntegerFieldrP   	CharFieldrQ   SerializerMethodFieldrR   rS   rL   r#   r    r!   r"   rD   rD   &   s`    (((tLI(;(($OL3+335K${$$,=NH
b br!   rD   c                   4    e Zd Z edd      Z G d d      Zy)ProgramsSectionSerializerTr(   c                       e Zd ZeZg dZy)ProgramsSectionSerializer.Meta)r-   descriptionhas_doctoral_programsprogramsN)r   r   r   r
   r   r   r    r!   r"   r#   rZ   8   s    Nr!   r#   N)r   r   r   rD   r]   r#   r    r!   r"   rX   rX   5   s     dd;HO Or!   rX   c                        e Zd Z G d d      Zy)FeatureSerializerc                       e Zd ZeZdgZy)FeatureSerializer.Metar   N)r   r   r   r   r   r   r    r!   r"   r#   ra   =   s    r!   r#   Nr$   r    r!   r"   r_   r_   <   r%   r!   r_   c                   4    e Zd Z edd      Z G d d      Zy)WhyChooseSectionSerializerTr(   c                       e Zd ZeZg dZy)WhyChooseSectionSerializer.Meta)r-   r[   
conclusionr;   featuresN)r   r   r   r   r   r   r    r!   r"   r#   re   D   s     Lr!   r#   N)r   r   r   r_   rg   r#   r    r!   r"   rc   rc   A   s     dd;HM Mr!   rc   c                        e Zd Z G d d      Zy)FacultySerializerc                       e Zd ZeZg dZy)FacultySerializer.Meta)rA   position
departmentqualificationsr;   N)r   r   r   r   r   r   r    r!   r"   r#   rk   I   s    Nr!   r#   Nr$   r    r!   r"   ri   ri   H   s    O Or!   ri   c                   4    e Zd Z edd      Z G d d      Zy)FacultySectionSerializerTr(   c                       e Zd ZeZg dZy)FacultySectionSerializer.Meta)r-   r[   faculty_membersN)r   r   r   r   r   r   r    r!   r"   r#   rr   P   s    <r!   r#   N)r   r   r   ri   rs   r#   r    r!   r"   rp   rp   M   s    'TTBO= =r!   rp   c                        e Zd Z G d d      Zy)TestimonialSerializerc                       e Zd ZeZg dZy)TestimonialSerializer.Meta)rA   rH   companytestimonialr;   N)r   r   r   r   r   r   r    r!   r"   r#   rw   U   s    Fr!   r#   Nr$   r    r!   r"   ru   ru   T   s    G Gr!   ru   c                   4    e Zd Z edd      Z G d d      Zy)TestimonialSectionSerializerTr(   c                       e Zd ZeZddgZy)!TestimonialSectionSerializer.Metar-   testimonialsN)r   r   r   r   r   r   r    r!   r"   r#   r}   \   s    ">*r!   r#   N)r   r   r   ru   r~   r#   r    r!   r"   r{   r{   Y   s    (ddCL+ +r!   r{   c                        e Zd Z G d d      Zy)RecruiterSerializerc                       e Zd ZeZddgZy)RecruiterSerializer.MetarA   logoN)r   r   r   r   r   r   r    r!   r"   r#   r   a   s    &!r!   r#   Nr$   r    r!   r"   r   r   `   s    " "r!   r   c                   4    e Zd Z edd      Z G d d      Zy)RecruitersSectionSerializerTr(   c                       e Zd ZeZddgZy) RecruitersSectionSerializer.Metar-   
recruitersN)r   r   r   r   r   r   r    r!   r"   r#   r   h   s    !<(r!   r#   N)r   r   r   r   r   r#   r    r!   r"   r   r   e   s    $$$?J) )r!   r   c                        e Zd Z G d d      Zy)FacilitySerializerc                       e Zd ZeZg dZy)FacilitySerializer.Meta)r-   r[   r;   N)r   r   r   r   r   r   r    r!   r"   r#   r   m   s    2r!   r#   Nr$   r    r!   r"   r   r   l   s    3 3r!   r   c                   4    e Zd Z edd      Z G d d      Zy)InfrastructureSectionSerializerTr(   c                       e Zd ZeZg dZy)$InfrastructureSectionSerializer.Meta)r-   r[   
facilitiesN)r   r   r   r   r   r   r    r!   r"   r#   r   t   s    %7r!   r#   N)r   r   r   r   r   r#   r    r!   r"   r   r   q   s    #>J8 8r!   r   c                       e Zd Z ed      Z ed      Z ed      Z e	d      Z
 ed      Z ed      Z ed      Z ed      Z ed      Z G d d      Zy)CollegeSerializerT)r*   c                       e Zd ZeZg dZy)CollegeSerializer.Meta)idrA   rI   short_descriptionpriority_orderhero_sectionabout_sectiondirector_sectionprograms_sectionwhy_choose_sectionfaculty_sectiontestimonial_sectionrecruiters_sectioninfrastructure_sectionN)r   r   r   r   r   r   r    r!   r"   r#   r      s    
r!   r#   N)r   r   r   r'   r   r8   r   r>   r   rX   r   rc   r   rp   r   r{   r   r   r   r   r   r#   r    r!   r"   r   r   x   sl    (48L*T:M04@04@3dC.>O6F4tD<tL
 
r!   r   N)(rest_frameworkr   colleges.modelsr   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   ModelSerializerr   r'   r3   r8   r>   rD   rX   r_   rc   ri   rp   ru   r{   r   r   r   r   r   r    r!   r"   <module>r      sq   &    k11 
WK77 W[88 
:[88 :7 ; ; 7
b33 bO ; ; O33 
M!<!< MO33 O
={:: =GK77 G
+;#>#> +"+55 "
)+"="= )344 3
8k&A&A 8
33 
r!   