bia-fitness/profiles/models.py

13 lines
300 B
Python
Raw Normal View History

2015-04-06 22:35:51 +00:00
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)