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

Modify old migration to comply with Django 2.0.

parent a1aa69ed
......@@ -29,10 +29,12 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='TESTOAuth2Data',
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)),
('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={
'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