File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
-
3
- from __future__ import unicode_literals
4
-
5
1
from copy import deepcopy
6
2
7
3
from django .conf import settings
8
4
from django .contrib import admin
9
5
from django .core .exceptions import ImproperlyConfigured
10
- from django .utils .six import string_types
11
6
12
7
try :
13
8
from django .urls import resolve , Resolver404
@@ -64,11 +59,11 @@ def get_app_list(self):
64
59
return ordered_app_list
65
60
66
61
def make_app (self , app_config ):
67
- if not isinstance (app_config , (dict , string_types )):
62
+ if not isinstance (app_config , (dict , str )):
68
63
raise TypeError ('ADMIN_REORDER list item must be '
69
64
'dict or string. Got %s' % repr (app_config ))
70
65
71
- if isinstance (app_config , string_types ):
66
+ if isinstance (app_config , str ):
72
67
# Keep original label and models
73
68
return self .find_app (app_config )
74
69
else :
You can’t perform that action at this time.
0 commit comments