Skip to content
Snippets Groups Projects
Commit ad809b4c authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI
Browse files

[navigation][migrations] Pre-commit cleanup

parent 9c06909a
No related branches found
No related tags found
2 merge requests!355Cleanup navigation,!342Django 3 migration
...@@ -27,8 +27,9 @@ ...@@ -27,8 +27,9 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings from django.conf import settings
from django.db import migrations
from django.db import models
class Migration(migrations.Migration): class Migration(migrations.Migration):
...@@ -39,11 +40,30 @@ class Migration(migrations.Migration): ...@@ -39,11 +40,30 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.CreateModel( migrations.CreateModel(
name='Agreement', name="Agreement",
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), (
('version', models.PositiveIntegerField(default=1, help_text=b'Last version of the ToS the user has agreed with')), "id",
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)), models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
(
"version",
models.PositiveIntegerField(
default=1,
help_text=b"Last version of the ToS the user has agreed with",
),
),
(
"user",
models.OneToOneField(
to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE
),
),
], ],
), ),
] ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment