
    D?h                     R    d dl mZ d dlmZ d dlmZ  G d dej                        Zy)    )models)reverse)gettext_lazyc                   l   e Zd Z ej                   ed      d      Z ej                   ed      dd      Z ej                   ed      d      Z	 ej                   ed      d      Z
 ej                   ed	      d
      Z ej                   ed      d      Zd Zd Zd Z G d d      Zy)Locationu   nombre de la ubicación   )
max_lengthslugT)r	   uniquezdepartamento / estadou   paísu   descripción   u   imagen de la ubicaciónzphotos/locations)	upload_toc                 2    t        d| j                  g      S )Nproperties_by_location_comprarargsr   r
   selfs    >C:\Users\User\Documents\GitHub\espacioelite\location\models.pyget_url_comprazLocation.get_url_compra    s    7tyykJJ    c                 2    t        d| j                  g      S )Nproperties_by_location_rentarr   r   r   s    r   get_url_rentazLocation.get_url_renta#   s    6dii[IIr   c                     | j                   S )N)location_namer   s    r   __str__zLocation.__str__&   s    !!!r   c                   ,    e Zd Z ed      Z ed      Zy)Location.Metau
   ubicaciónubicacionesN)__name__
__module____qualname___verbose_nameverbose_name_plural r   r   Metar   )   s    .r   r(   N)r!   r"   r#   r   	CharFieldr$   r   	SlugFieldr
   location_statelocation_countrylocation_description
ImageFieldlocation_Imager   r   r   r(   r'   r   r   r   r      s    $F$$	
#$M 6	&	D
 &V%%	
!"N (v''	'
 ,6++	. 'V&&	
#$$N
KJ"/ /r   r   N)		django.dbr   django.urlsr   django.utils.translationr   r$   Modelr   r'   r   r   <module>r4      s      6&/v|| &/r   