summaryrefslogtreecommitdiff
path: root/stapp/userprofile/models.py
blob: 0c0f5684002c113a2609ecbd22689ffc3447555b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from django.db import models
from django.contrib.auth.models import User

GENDER_CHOICES = (
	('Female', 'Female'),
	('Male' , 'Male'),	
	)

# Create your models here.

class UserProfile(models.Model):
	user = models.OneToOneField(User, unique=True)
	dob = models.DateField(auto_now=False)
	gender = models.CharField(max_length=6, choices=GENDER_CHOICES)
	
	def __unicode__(self):
	    return u"%s the place" % self.user.username