-coding utf8- from django contrib auth models import User from django

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#-*-coding:utf8-*-
from django.contrib.auth.models import User
from django.db import models
from django.forms import ModelForm
class ClientProfile(models.Model):
user = models.ForeignKey(User, unique=True)
urid_address = models.CharField(max_length=400, verbose_name="Юр.адрес:")
reg_address = models.CharField(max_length=400, verbose_name="Адрес регистрации:")
fakt_address = models.CharField(max_length=400, verbose_name="Фактический адрес:")
time_work = models.TextField(max_length=400, verbose_name="Время работы:")
visit_day = models.CharField(max_length=11, verbose_name="День посещения:")
phone_number = models.IntegerField(max_length=16, verbose_name="Тел.номер:")
contact_face = models.CharField(max_length=64, verbose_name="Контактное лицо:")
is_trade = models.BooleanField(default=False)