Advertisement
ranisalt

Models.py

Jul 2nd, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. $ cat user/models.py
  2. from django.db import models
  3. import city
  4.  
  5. class User(models.Model):
  6.     username = models.CharField(max_length=32)
  7.     password = models.CharField('encrypted and salted', max_length=64)
  8.     salt = models.CharField('password salt', max_length=32, editable=False)
  9.     first_name = models.CharField(max_length=24)
  10.     last_name = models.CharField(max_length=48, blank=True)
  11.     city = models.ForeignKey(City, null=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement