a
    YÒOcš  ã                   @   sp   d dl mZ d dlmZ d dlm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 )é    )Úmodels)ÚCountryField)Úcustom_countriesc                   @   s\   e Zd Zejdd�Zeƒ Zeddd�Zeddd�Z	edd	�Z
eejdd
�ZG dd„ dƒZdS )ÚPersoné2   ©Ú
max_lengthTz//flags.example.com/{code}.gif)ÚblankZcountries_flag_urlÚname)r	   Zcountries_str_attrZNZ)Údefault)Ú	countriesr	   c                   @   s   e Zd ZdZdS )zPerson.Meta)r
   N)Ú__name__Ú
__module__Ú__qualname__Zordering© r   r   úT/var/www/html/gsl.tools/lib/python3.9/site-packages/django_countries/tests/models.pyÚMeta   s   r   N)r   r   r   r   Ú	CharFieldr
   r   ÚcountryZother_countryZstr_attr_countryZfavourite_countryr   ZFantasyCountriesZfantasy_countryr   r   r   r   r   r      s   ÿ
ÿr   c                   @   s   e Zd Zedddd�ZdS )Ú	AllowNullTz(select country))Únullr	   Zblank_labelN)r   r   r   r   r   r   r   r   r   r      s   r   c                   @   s"   e Zd Zedd�Zeddd�ZdS )ÚMultiCountryT)ÚmultipleF)r   ÚeditableN)r   r   r   r   r   Zuneditable_countriesr   r   r   r   r      s   
r   c                   @   s8   e Zd Zeƒ Zejdd�Zedd„ ƒZ	e	j
dd„ ƒZ	dS )ÚWithPropé
   r   c                 C   s   | j S ©N©Ú_private_field)Úselfr   r   r   Úpublic_field$   s    zWithProp.public_fieldc                 C   s
   || _ d S r   r   )r   Úvaluer   r   r   r    (   s    N)r   r   r   r   r   r   r   r   Úpropertyr    Úsetterr   r   r   r   r       s   
r   N)Z	django.dbr   Zdjango_countries.fieldsr   Zdjango_countries.testsr   ZModelr   r   r   r   r   r   r   r   Ú<module>   s   