a
    k\a  ã                   @   s"   d dl mZ G dd„ dejƒZdS )é    )Úmodelsc                   @   sj  e Zd ZdZejdedZe ¡ Ze ¡ Z	ejdddZ
ejddd	Zejdd	Zejdd	Zejd
d	Ze d¡Ze d¡Zejddd	Ze ¡ ZejddZejddd	Zejdd	Zejdd	Zejd
d	Ze d¡Ze d¡Zejddd	Zejdd	Zejdd	Zejdd	Ze d¡Ze d¡Z e d¡Z!e d¡Z"e d¡Z#e d¡Z$e d¡Z%dd„ Z&dS )ÚPlayers))ZNOÚNo)ZYESÚYesé   )Ú
max_lengthÚchoiceszCapt IDT)ÚuniqueZCaptainé2   )r   é   z
Capt Indexz	Capt HcapzSecond Playerz
Scnd Indexz	Scnd HcapzScnd IDéd   éÈ   z	Team HcapzDay 1 Grossz
Day 1 NettzDay 2 Grossz
Day 2 Nettz
Gross Rankz	Nett Rankc                 C   s    ddl m} |dt| jƒgdS )Nr   )Úreversezentries:teams-edit)Úargs)Údjango.urlsr   ÚstrÚid)Úselfr   © r   ú)/var/www/taranaki_pairs/entries/models.pyÚget_absolute_url'   s    zPlayers.get_absolute_urlN)'Ú__name__Ú
__module__Ú__qualname__ZPAID_CHOICESr   Ú	CharFieldZpaidÚIntegerFieldÚyearZ	p1_id_regZp1_idZp1_nameZ
p1_surnameZp1_firstnameZ	p1_genderÚ
FloatFieldZp1_indexZp1_hcapZp1_clubZ	p2_id_regZp2_idZp2_nameZ
p2_surnameZp2_firstnameZ	p2_genderZp2_indexZp2_hcapZp2_clubÚphoneÚaddressÚemailZhcapZd1_grossZd1_nettZd2_grossZd2_nettZ
rank_grossZ	rank_nettr   r   r   r   r   r      s@   










r   N)Ú	django.dbr   ÚModelr   r   r   r   r   Ú<module>   s   