mirror of
https://github.com/retspen/webvirtcloud
synced 2026-07-05 11:05:40 +00:00
Migrate to django 2.2.4
The django.core.urlresolvers module is removed in favor of its new location, django.urls. The on_delete argument for ForeignKey and OneToOneField is required in models and migrations.
This commit is contained in:
parent
a4d74a09a6
commit
3488661dc9
16 changed files with 20 additions and 19 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from django.db import models, migrations
|
||||
from django.conf import settings
|
||||
from django.db.models import CASCADE
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
|
@ -16,7 +17,7 @@ class Migration(migrations.Migration):
|
|||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('keyname', models.CharField(max_length=25)),
|
||||
('keypublic', models.CharField(max_length=500)),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=CASCADE)),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue