o
    èVÕh©  ã                   @   sž   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 dZ
G dd„ dejƒZG d	d
„ d
ejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZdS )é    )Úunicode_literals)Úmodels)Úadmin)ÚUser)Ú	HTMLField))Ú	Publishedr   )úPending Reviewr   c                   @   sÒ   e Zd Zejdd�Zejddd�Zejdd�Z	ejdd�Z
ejdddd�Zejdddd�Zejdddd�Zejdddd�Zejdddd�Zejdddd�Zejdddd�Zejdddd�Zejdd�Zdd	„ Zd
S )ÚEnquiryéÿ   ©Ú
max_lengthT©ÚnullÚblanké   ©r   r   r   ©Úauto_nowc                 C   ó   | j S ©N)Ústudentname©Úself© r   ú*/var/www/html/wellsprings/school/models.pyÚ__str__   ó   zEnquiry.__str__N)Ú__name__Ú
__module__Ú__qualname__r   Ú	CharFieldr   Ú	TextFieldÚurlÚ
EmailFieldÚemailÚmobileÚparent_nameÚadmission_gradeÚsourceÚgclidÚutm_campaignÚutm_contentÚ
utm_mediumÚutm_termÚDateTimeFieldÚ
created_onr   r   r   r   r   r	      s    r	   c                   @   sx   e Zd Zejdd�Zejdd�Zejdddd�Zejdddd�Z	ej
dd�Zejdd	�Zejdd	�Zd
d„ Zdd„ ZdS )ÚCareerr
   r   r   i„  Tr   Úresumes)Ú	upload_tor   c                 C   r   r   ©Úfullnamer   r   r   r   Ú__unicode__)   r   zCareer.__unicode__c                 C   r   r   r3   r   r   r   r   r   ,   r   zCareer.__str__N)r   r   r   r   r    r4   r%   r#   r$   ÚApplication_forÚ	FileFieldÚresumer.   r/   Úmodified_onr5   r   r   r   r   r   r0       s    r0   c                   @   sâ  e Zd Zejdd�Zejdddd�Zedddd�Z	ej
ddd�Zejdddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Zed	ddd�Zejdddd�Z ed	ddd�Z!ejd
ddd�Z"eje#ddd�Z#ej$dd�Z%ej&dd�Z'ej&dd�Z(ej&ddd�Z)dd„ Z*dd„ Z+dS )ÚBlogr
   r   Tr   Úmeta_descriptionr   Úblog_images)r2   r   r   ÚContenté–   é2   r   )Úchoicesr   Údefaultr   )rA   r   c                 C   r   r   ©Útitler   r   r   r   r   Q   r   zBlog.__str__c                 C   ó   d  d| j¡S ©Nú{0}{1}z/blog/©ÚformatÚslugr   r   r   r   Úget_absolute_urlT   ó   zBlog.get_absolute_urlN),r   r   r   r   r    rC   Ú	SlugFieldrI   r   r;   r!   Úkeywordsr7   Úthumnail_imageÚsection1_imageÚsection1_contentÚsection2_imageÚsection2_contentÚsection3_imageÚsection3_contentÚsection4_imageÚsection4_contentÚsection5_imageÚsection5_contentÚsection6_imageÚsection6_contentÚsection7_imageÚsection7_contentÚsection8_imageÚsection8_contentÚsection9_imageÚsection9_contentÚsection10_imageÚsection10_contentÚ
created_byÚstatusÚIntegerFieldÚ
blog_countr.   r/   r9   Úpublished_onr   rJ   r   r   r   r   r:   0   sD    r:   c                   @   sª   e Zd Zejdd�Zejdddd�Zedddd�Z	edddd�Z
ejddd�Zejddd�Zejeddejd	�Zejddd�Zejdd
�Zejdd
�Zdd„ Zdd„ ZdS )ÚPager
   r   iô  Tr   r=   r   z	Content 1©r   r   Ú	on_deleter   c                 C   r   r   rB   r   r   r   r   r   d   r   zPage.__str__c                 C   rD   )NrF   ú/rG   r   r   r   r   rJ   g   rK   zPage.get_absolute_urlN)r   r   r   r   r    rC   rL   rI   r   ÚcontentÚcontent1r!   r;   rM   Ú
ForeignKeyr   ÚCASCADErc   r.   Úpunlished_onr/   r9   r   rJ   r   r   r   r   rh   X   s    rh   c                   @   sŽ   e Zd Zejdd�Zejdddd�Zejddd�Z	ejddd�Z
ejeddejd�Zejddd�Zejdd�Zejdd�Zdd	„ Zd
d„ ZdS )ÚOldblogpager
   r   Tr   r   ri   r   c                 C   r   r   rB   r   r   r   r   r   u   r   zOldblogpage.__str__c                 C   rD   rE   rG   r   r   r   r   rJ   x   rK   zOldblogpage.get_absolute_urlN)r   r   r   r   r    rC   rL   rI   r!   r;   rM   rn   r   ro   rc   r.   rp   r/   r9   r   rJ   r   r   r   r   rq   k   s    rq   N)Ú
__future__r   Ú	django.dbr   Údjango.contribr   Údjango.contrib.auth.modelsr   Útinymce.modelsr   rd   ÚModelr	   r0   r:   rh   rq   r   r   r   r   Ú<module>   s    (