Commit 28248da9 authored by Sharad Heft's avatar Sharad Heft

Modify old migration to comply with Django 2.0.

parent a1aa69ed
...@@ -29,10 +29,12 @@ class Migration(migrations.Migration): ...@@ -29,10 +29,12 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='TESTOAuth2Data', name='TESTOAuth2Data',
fields=[ fields=[
('user', models.OneToOneField(related_name='auth', primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('user', models.OneToOneField(related_name='auth', primary_key=True, serialize=False,
to=settings.AUTH_USER_MODEL, on_delete=django.db.models.deletion.CASCADE)),
('access_token', models.CharField(max_length=128)), ('access_token', models.CharField(max_length=128)),
('refresh_token', models.CharField(max_length=128)), ('refresh_token', models.CharField(max_length=128)),
('primary_character', models.ForeignKey(default=None, to='test_oauth.Character', null=True)), ('primary_character', models.ForeignKey(default=None, to='test_oauth.Character',
null=True, on_delete=django.db.models.deletion.SET_NULL)),
], ],
options={ options={
'verbose_name': 'OAuth2 Token', 'verbose_name': 'OAuth2 Token',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment