o
    1i                     @   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 )Person2   
max_lengthTz//flags.example.com/{code}.gif)blankcountries_flag_urlname)r	   countries_str_attrNZ)default)	countriesr	   c                   @   s   e Zd ZdZdS )zPerson.Meta)r   N)__name__
__module____qualname__ordering r   r   ^/var/www/html/humari/django-venv/lib/python3.10/site-packages/django_countries/tests/models.pyMeta   s    r   N)r   r   r   r   	CharFieldr   r   countryother_countrystr_attr_countryfavourite_countryr   FantasyCountries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	   blank_labelN)r   r   r   r   r   r   r   r   r   r      s    r   c                   @   sN   e Zd ZeddZeddddZeddddZedddddZedddZdS )	MultiCountryT)multipleF)r"   multiple_sortr	   )r"   multiple_uniquer	   )r"   r#   r$   r	   )r"   editableN)	r   r   r   r   r   unsorted_countriesduplicate_countriesunsorted_duplicate_countries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   r0   -   s   
N)r   r   r   r   r   r   r   r.   propertyr0   setterr   r   r   r   r*   %   s    
r*   N)	django.dbr   django_countries.fieldsr   django_countries.testsr   Modelr   r   r!   r*   r   r   r   r   <module>   s    
