1 from django.db import models
2 from django.utils.translation import ugettext_lazy as _
3 from django.conf import settings
4 from django.contrib.auth.models import User
6 class UserProfile(models.Model):
7 user = models.ForeignKey(User, unique=True, verbose_name=_("User"))
8 address = models.CharField(max_length=100, verbose_name=_("Address"))
9 # We won't use something NL specific here, or set a maxlength of 6,
10 # to allow for zipcodes from other countries.
11 zipcode = models.CharField(max_length=10, verbose_name=_("Zipcode"))
12 town = models.CharField(max_length=100, verbose_name=_("Town"))
13 birthdate = models.DateField(verbose_name=_("Birthdate"))
14 # Allow for multiple numbers
15 telephone = models.CharField(max_length=50, verbose_name=_("Telephone number"))
16 anonymous = models.BooleanField(verbose_name=_("Hide my full name"))
18 vegetarian = models.BooleanField(verbose_name=_("Vegetarian"))
19 foodallergies = models.CharField(max_length=100,blank=True, verbose_name=_("Food allergies"))
20 otherallergies = models.CharField(max_length=100, blank=True, verbose_name=_("Other allergies"))
21 bloodgroup = models.CharField(max_length=50, blank=True, verbose_name=_("Blood group"))
22 othermedical = models.TextField(blank=True, verbose_name=_("Other medical issues"))
24 warnname = models.TextField(verbose_name=_("Warn in case of accident (name)"))
25 warntelephone = models.TextField(verbose_name=_("Warn in case of accident (phone number)"))
29 # vim: set sts=4 sw=4 expandtab: