
    &Ge                         d dl mZ d dlmZ d dlmZ d dlmZ  G d dej                  Z	 G d dej                  Z
d	S )
    )models)category)Location)reversec                   	   e Zd Z ej        d          Z ej        dd          Z ej        dd          Z	 ej
                    Z ej        eej                  Z ej        d	          Z ej        d
          Z ej        d          Z ej        dd          Z ej        dd          Z ej        dd          Z ej        dd          Z ej        eej                  Z ej
                    Z ej        d          Z ej        d          Z ej        d          Z ej
                    Z ej
                    Z  ej
                    Z! ej        d          Z" ej        d          Z# ej        d          Z$ ej        d          Z% ej        d          Z& ej        d          Z' ej
                    Z( ej        d          Z) ej        d          Z* ej        d          Z+ ej        d          Z, ej        d          Z- ej        d          Z. ej        d          Z/ ej        d          Z0 ej        d          Z1 ej        d          Z2 ej        d          Z3 ej        d          Z4 ej        d          Z5 ej        d          Z6 ej        d          Z7 ej        d          Z8 ej        d          Z9 ej        d          Z: ej        d          Z; ej        d          Z< ej        d          Z= ej        d          Z> ej        d          Z? ej        d          Z@ ej        d          ZA ej        d          ZB ej        d          ZC ej        d          ZD ej        d          ZE ej
                    ZF ej        d          ZG ej
                    ZH ej        d          ZI ej
                    ZJ ej        dd          ZK ej        dd          ZL ej        dd          ZM ej        d          ZN ej        d          ZO ej        d          ZP ejQ        dd          ZR ejQ        dd          ZS ejQ        dd          ZTd ZU G d d          ZVd ZWdS )Property   )
max_lengthT)r
   uniquei  )r
   blank)	on_deletezphotos/properties)	upload_to)auto_now_add)auto_nowEspacioElite)r
   default1zyirinaibarra@gmail.comF)r   z"https://www.google.com/maps/?hl=esi  )r   r
   z$https://www.youtube.com/?hl=es&gl=ECc                 F    t          d| j        j        | j        g          S )Nproperty_detail)args)r   r   slugselfs    <C:\Users\USER\Documents\GitHub\espacioelite\agency\models.pyget_urlzProperty.get_urli   s"    (t}/A49.MNNNN    c                       e Zd ZdZdZdS )Property.Metaproperty
propertiesN__name__
__module____qualname__verbose_nameverbose_name_plural r   r   Metar   l   s        !*r   r(   c                     | j         S )N)property_namer   s    r   __str__zProperty.__str__p   s    !!r   N)Xr"   r#   r$   r   	CharFieldr*   	SlugFieldr   	TextFielddescriptionIntegerFieldprice
ForeignKeyr   CASCADE
ImageFieldimagesDateTimeFieldcreated_datemodified_dateownerowner_idowner_emailaddressr   locationfloorBooleanFieldis_verifiedis_avalibleis_furnitureareanumber_of_roomsnumber_of_bathroomshas_dining_roomhas_integral_kitchenhas_work_zonehas_hall	has_studyhas_balcony_or_terracenumber_of_balcony_or_terracehas_poolhas_parklandhas_pet_areahas_gymhas_motorcycle_parkinghas_car_parkinghas_conciergehas_doormanhas_elevatorhas_wifihas_air_conditioninghas_hot_waterhas_security_camerashas_smoke_detectorhas_coffee_makerhas_dishwasherhas_ovenhas_plates_and_cutleryhas_microwavehas_freezerhas_clothes_ironhas_washing_machine	has_dryer
has_towelshas_soaphas_toilet_paperhas_hair_dryerhas_bed_sheetshas_tvnumber_of_tvshas_bednumber_of_beds
has_closetnumber_of_closetswhy_this_placeabout_transportationfor_studentsallows_petsallows_smokersallows_partiesURLFieldmaps_urlvideo360_urlvideoblog_urlr   r(   r+   r'   r   r   r   r      s4        %F$444M$F$4@@@D$F$$???K'F'))E%F%h&.IIIH &F%0CDDDF(F(d;;;L(F($777M$F$NKKKE$F$C@@@H$F$<TUUUK$F$4@@@G%F%h&.IIIH0V022E 1V0???K0V0>>>K1f1$???L 1V022D0V022O0V0220V0???O0V0???0V0???M0V0???H0V0???I0V0???#66#6#8#8 0V0???H0V0???L0V0???L0V0???G0V0???0V0???O0V0???M0V0???K0V0???L 1V0???H0V0???0V0???M0V0???0V0??? 1V0???0V0???N0V0???H0V0???0V0???M0V0???K0V0???0V0???0V0???I0V0???J0V0???H0V0???0V0???N0V0???N0V0???F0V022M0V0???G0V022N0V0???J0V022 /f.#DIIIN.f.#DIII.f.#DIIIL 2f1%@@@K1f1%@@@N1f1%@@@N -V_5YehiiiH,V_5[gjkkkL,V_5[gjkkkMO O O+ + + + + + + +" " " " "r   r   c                       e Zd Z ej        edej                  Z ej        dd          Z	d Z
 G d d          ZdS )	PropertyGalleryN)r   r   zagency/properties   )r   r
   c                 x    t          | j        j                  dz   t          | j        j                  z   dz   }|S )Nz ( z ))strr   r*   r<   )r   names     r   r+   zPropertyGallery.__str__w   s5    ,--e3C8M4N4NNtSr   c                       e Zd ZdZdZdS )PropertyGallery.Metazproperty galleryNr!   r'   r   r   r(   r   {   s        )0r   r(   )r"   r#   r$   r   r2   r   r3   r   r4   imager+   r(   r'   r   r   rz   rz   s   s~         v $PPPH6':cJJJE  1 1 1 1 1 1 1 1 1 1r   rz   N)	django.dbr   category.modelsr   location.modelsr   django.urlsr   Modelr   rz   r'   r   r   <module>r      s          $ $ $ $ $ $ $ $ $ $ $ $      i" i" i" i" i"v| i" i" i"V
1 
1 
1 
1 
1fl 
1 
1 
1 
1 
1r   