MAINT: Upgrade to Django 1.11 (#45)
This commit is contained in:
parent
17899ad7c7
commit
a482019a81
15 changed files with 101 additions and 67 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue