Simplify first migration, should fix #1

This commit is contained in:
Valentin Samir 2016-03-26 18:29:32 +01:00
parent f6d436acb4
commit 673f46593a

View File

@ -98,7 +98,7 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('username', models.CharField(max_length=30)), ('username', models.CharField(max_length=30)),
('date', models.DateTimeField(auto_now=True, auto_now_add=True)), ('date', models.DateTimeField(auto_now=True, auto_now_add=True)),
('session', models.OneToOneField(related_name='cas_server_user', null=True, blank=True, to='sessions.Session')), ('session_key', models.CharField(max_length=40, null=True, blank=True)),
], ],
options={ options={
}, },
@ -310,28 +310,8 @@ class Migration(migrations.Migration):
field=models.CharField(help_text='name of an attribut to send to the service, use * for all attributes', max_length=255, verbose_name='name'), field=models.CharField(help_text='name of an attribut to send to the service, use * for all attributes', max_length=255, verbose_name='name'),
preserve_default=True, preserve_default=True,
), ),
migrations.AlterUniqueTogether(
name='user',
unique_together=set([('username', 'session')]),
),
migrations.AlterField(
model_name='user',
name='session',
field=models.OneToOneField(related_name='cas_server_user', null=True, on_delete=django.db.models.deletion.SET_NULL, blank=True, to='sessions.Session'),
preserve_default=True,
),
migrations.AddField(
model_name='user',
name='session_key',
field=models.CharField(max_length=40, null=True, blank=True),
preserve_default=True,
),
migrations.AlterUniqueTogether( migrations.AlterUniqueTogether(
name='user', name='user',
unique_together=set([('username', 'session_key')]), unique_together=set([('username', 'session_key')]),
), ),
migrations.RemoveField(
model_name='user',
name='session',
),
] ]