
    Li                     R   d dl mZ d dl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dS )    )models)ProjectInstitutionc                       e Zd Z ej        d          Z ej        d          Z ej        d          Z ej	                    Z
d ZdS )PersonalDetailsd   
max_lengthTnull   c                     | j          S )N)	full_nameselfs    >C:\Users\anoop\OneDrive\Desktop\AspireAid\userModule\models.py__str__zPersonalDetails.__str__   s    .""    N)__name__
__module____qualname__r   	CharFieldr   
EmailFieldemailphone	TextFieldaddressr    r   r   r   r      sr          C000IF4(((EF+++Ef  G# # # # #r   r   c                       e Zd Z ej        eej        d          Z ej        eej        d          Z	 ej
        d          Z ej        d          Z ej        d          Zd	 Zd
S )SelectedTileprojects	on_deleterelated_nameTr#   r      r	   auto_now_adddefaultc                 T    d| j         j         d| j         j         d| j        j         S )Nz
Tiles for  z on )sender
first_name	last_nameprojecttitler   s    r   r   zSelectedTile.__str__   s1    dDK2ddT[5JddPTP\Pbdddr   N)r   r   r   r   
ForeignKeyr   CASCADEr0   r   r-   r   tilesDateTimeField	funded_atBooleanFieldtable_statusr   r   r   r   r    r       s        f6>PZ[[[GVdSSSFF,,,E$$$777I&6&t444Le e e e er   r    c                      e Zd Z ej        eej        dd          Z ej        eej	        d          Z
 ej        eej	                  Z ej        dd          Z ej        dd	
          Z ej        d          Z ej        dd          Z ej        d          Z ej        dd          Z ej        d          Zd ZdS )TransactionT)r#   r   blankr%   r#   
      )
max_digitsdecimal_places   INR)r
   r*   r	   r&   )r
   uniquer'   )r
   r;   r)   c                 0    d| j          d| j        j         S )NzTransaction z by )tracking_idr-   r   r   s    r   r   zTransaction.__str__'   s     Kd.KKDK4IKKKr   N)r   r   r   r   r2   r    SET_NULLtiles_boughtr   r3   r-   r   r0   DecimalFieldamountr   currencystatusrE   r5   transaction_timemessager7   r8   r   r   r   r   r:   r:      s       $6$\V_SW_ceeeLV&.tTTTFf&.BBBG V BqAAAFv1e<<<HV---F"&"c$???K+v+>>>f#T:::G&6&t444LL L L L Lr   r:   c                       e Zd Z ej        eej                  Z ej        d          Z	 ej
        d          Zd ZdS )
Screenshotr<   zscreenshots/	upload_toTr)   c                      d| j         j         S )NzScreenshot for Transaction transactiontransaction_idr   s    r   r   zScreenshot.__str__0   s    NT-=-LNNNr   N)r   r   r   r   r2   r:   r3   rT   
ImageFieldscreen_shotr7   r8   r   r   r   r   rO   rO   +   sk        #&#K&.JJJK#&#n===K&6&t444LO O O O Or   rO   c                       e Zd Z ej        eej                  Z ej        d          Z	 ej
        d          Zd ZdS )Receiptr<   z	receipts/rP   Tr)   c                      d| j         j         S NzReceipt for Transaction rS   r   s    r   r   zReceipt.__str__9       K$*:*IKKKr   N)r   r   r   r   r2   r:   r3   rT   	FileFieldreceipt_pdfr7   r8   r   r   r   r   rY   rY   4   sk        #&#K&.JJJK"&"[999K&6&t444LL L L L Lr   rY   c                       e Zd Z ej        eej                  Z ej        d          Z	 ej
        d          Zd ZdS )Receipt80mmr<   zreceipts80mm/rP   Tr)   c                      d| j         j         S r[   rS   r   s    r   r   zReceipt80mm.__str__B   r\   r   N)r   r   r   r   r2   r:   r3   rT   r]   receipt_80mm_pdfr7   r8   r   r   r   r   r`   r`   =   sl        #&#K&.JJJK'v'/BBB&6&t444LL L L L Lr   r`   c                   L   e Zd Z ej        d          Z ej        d          Z ej        d          Z ej        d          Z	 ej
                    Z ej        eej        dd          Z ej        d          Z ej        dd	          Z G d
 d          Zd ZdS )ContactMessager   r	   Tr      institution)r#   r$   r   r'   r*   r   c                       e Zd ZdgZdS )ContactMessage.Metaz
-sent_timeNr   r   r   orderingr   r   r   Metari   P   s         >r   rl   c                 $    | j          d| j         S )Nr,   )r.   r/   r   s    r   r   zContactMessage.__str__S   s    /44DN444r   N)r   r   r   r   r   r.   r/   r   r   r   r   rM   r2   r   r3   insr5   	sent_timer7   r8   rl   r   r   r   r   rd   rd   F   s        !!S111J  C000IF4(((EF+++Ef  G
&
K6>P]ei
j
j
jC$$$777I&6&t$???L" " " " " " " "5 5 5 5 5r   rd   c                       e Zd Z ej        eej        d          Z ej                    Z	 ej
        d          Z ej        dd          Z G d d          Zd Zd	S )
MessageReplymsgr"   Tr'   rg   c                       e Zd ZdgZdS )MessageReply.Metaz-reply_timeNrj   r   r   r   rl   rt   ]   s        !?r   rl   c                 J    d| j         j         d| j         j         d| j         S )Nz	Reply to r,   z at )rM   r.   r/   
reply_timer   s    r   r   zMessageReply.__str__`   s.    b4<2bbT\5KbbQUQ`bbbr   N)r   r   r   r   r2   rd   r3   rM   r   replyr5   rv   r7   r8   rl   r   r   r   r   rq   rq   W   s        f&.W\]]]GFE%%4888J&6&t$???L# # # # # # # #c c c c cr   rq   N)	django.dbr   adminModule.modelsr   r   Modelr   r    r:   rO   rY   r`   rd   rq   r   r   r   <module>r{      s         3 3 3 3 3 3 3 3# # # # #fl # # #e e e e e6< e e eL L L L L&, L L L O O O O O O O OL L L L Lfl L L LL L L L L&, L L L5 5 5 5 5V\ 5 5 5"
c 
c 
c 
c 
c6< 
c 
c 
c 
c 
cr   