Nicer display of currently logged-in user
[climbing.kerkeslager.com] / src / nutrition / migrations / 0003_weightrecord.py
1 # Generated by Django 4.0.3 on 2022-03-04 15:43
2
3 from django.conf import settings
4 from django.db import migrations, models
5 import django.db.models.deletion
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12         ('nutrition', '0002_name_and_brand_as_char_fields'),
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='WeightRecord',
18             fields=[
19                 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20                 ('weight', models.PositiveIntegerField()),
21                 ('units', models.CharField(choices=[('kgs', 'kgs'), ('lbs', 'lbs')], max_length=3)),
22                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
23             ],
24         ),
25     ]