Guest User

Untitled

a guest
Feb 10th, 2014
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class SiteUsers(models.Model):
  2.     username = models.OneToOneField(User, unique = True, max_length = 30)
  3.     first_name = models.CharField(max_length = 200, blank=True, null=True, verbose_name=u'Имя')
  4.     second_name = models.CharField(max_length = 200, blank=True, null=True, verbose_name=u'Фамилия')
  5.     email = models.EmailField(max_length = 100, unique=True, verbose_name=u'эл.почта')
  6.     phone = models.CharField(max_length=100, blank=True, null=True, unique=True, verbose_name=u'Телефон')
  7.     avatar = ThumbnailerImageField(upload_to = 'media', null=True, blank=True, verbose_name=u'Аватар')
  8.     date_joined = models.DateField(blank=True, null=True)
  9.     last_login = models.DateField(blank=True, null=True)
  10.     teacher = models.BooleanField(default=False, verbose_name=u'Преподаватель')
  11.     teacherDesc = models.CharField(max_length=500, blank=True, null=True, verbose_name=u'Описание "Преподователь"')
  12.     stuff = models.BooleanField(default=False, verbose_name=u'Сотрудник школы')
  13.  
  14.     def __unicode__(self):
  15.         return unicode(self.username)
RAW Paste Data