1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +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:
Gao Jiangmiao 2019-08-16 13:07:59 +08:00
parent a4d74a09a6
commit 3488661dc9
16 changed files with 20 additions and 19 deletions

View file

@ -8,7 +8,7 @@ import string
import random
from bisect import insort
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.shortcuts import render, get_object_or_404
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.decorators import login_required