MAINT: Upgrade to Django 1.11 (#45)

This commit is contained in:
Matthew Ryan Dillon 2018-01-25 06:51:32 -07:00 committed by GitHub
parent 17899ad7c7
commit a482019a81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 101 additions and 67 deletions

View file

@ -14,7 +14,7 @@ class AdminSection(models.Model):
class AdminEntry(models.Model):
package = models.CharField(max_length=255)
model = models.CharField(max_length=255)
section = models.ForeignKey(AdminSection)
section = models.ForeignKey(AdminSection, on_delete=models.CASCADE)
sort = models.IntegerField()
def admin_url(self, request=None):

View file

@ -1,4 +1,4 @@
from django.core.urlresolvers import reverse
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase