Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5ba31601a131b8f6ee9fe7da544b8eaf > files > 69

django-profile-0.6-0.3.20090813svnr420.fc14.noarch.rpm

from django.db import models
from userprofile.models import BaseProfile
from django.utils.translation import ugettext as _
from django.conf import settings
import datetime

GENDER_CHOICES = ( ('F', _('Female')), ('M', _('Male')),)

class Profile(BaseProfile):
    firstname = models.CharField(max_length=255, blank=True)
    surname = models.CharField(max_length=255, blank=True)
    gender = models.CharField(max_length=1, choices=GENDER_CHOICES, blank=True)
    birthdate = models.DateField(default=datetime.date.today(), blank=True)
    url = models.URLField(blank=True)
    about = models.TextField(blank=True)