o
    mi                     @   s<   d dl mZ d dlmZ G dd deZG dd deZdS )    )models)	BaseModelc                   @   s&   e Zd ZejddZG dd dZdS )ContractorType   
max_lengthc                   @      e Zd ZdZdS )zContractorType.MetaZcontractor_typesN__name__
__module____qualname__db_table r   r   </var/www/html/kuke-dev/django-kuke/apps/contractor/models.pyMeta
       r   N)r
   r   r   r   	CharFieldnamer   r   r   r   r   r      s    r   c                   @   sb   e Zd ZejddZejeejdZ	ejddZ
ejddZejddZdd ZG d	d
 d
ZdS )
Contractorr   r   )	on_delete   T)nullc                 C   s    | j r| j j d| j j S dS )N  )
created_by
first_name	last_name)selfr   r   r   get_created_by_full_name   s   z#Contractor.get_created_by_full_namec                   @   r   )zContractor.MetacontractorsNr	   r   r   r   r   r      r   r   N)r
   r   r   r   r   r   
ForeignKeyr   CASCADEtypephone_no
EmailFieldemail	TextFieldnoter   r   r   r   r   r   r      s    r   N)	django.dbr   common.base_modelsr   r   r   r   r   r   r   <module>   s    