Ticket #22932: team.0001_initial.py.diff
File team.0001_initial.py.diff, 969 bytes (added by , 10 years ago) |
---|
-
myapp/team/migrations/0001_initial.py
old new 2 2 from __future__ import unicode_literals 3 3 4 4 from django.db import models, migrations 5 from django.conf import settings6 5 7 6 8 7 class Migration(migrations.Migration): 9 8 10 9 dependencies = [ 11 migrations.swappable_dependency(settings.AUTH_USER_MODEL),12 10 ] 13 11 14 12 operations = [ … … 22 20 }, 23 21 bases=(models.Model,), 24 22 ), 25 migrations.CreateModel(26 name='TeamCaptain',27 fields=[28 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),29 ('rider', models.ForeignKey(to=settings.AUTH_USER_MODEL)),30 ('team', models.ForeignKey(to='team.Team')),31 ],32 options={33 },34 bases=(models.Model,),35 ),36 23 ]