bia-fitness/profile/models.py
2015-04-07 13:04:48 -04:00

13 lines
300 B
Python

from django.db import models
from django.contrib.auth.models import User
UNITS = (
('m', 'Metric (kg)'),
('i', 'Imperial (lbs)'),
)
class Profile(models.Model):
user = models.OneToOneField(User, related_name='profile')
lifting_units = models.CharField(max_length=1, choices=UNITS)