13 lines
300 B
Python
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)
|