bia-fitness/profiles/migrations/0001_initial.py

24 lines
747 B
Python
Raw Normal View History

2015-04-06 22:35:51 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Profile',
fields=[
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True, serialize=False)),
('lifting_units', models.CharField(max_length=1, choices=[('m', 'Metric (kg)'), ('i', 'Imperial (lbs)')])),
('user', models.OneToOneField(related_name='config', to=settings.AUTH_USER_MODEL)),
],
),
]