File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 11import json
22
3- from django import VERSION as DJANGO_VERSION
4- try :
5- from django .urls import reverse
6- except ImportError : # Django<2.0
7- from django .core .urlresolvers import reverse
3+ from django .urls import reverse
84from django .contrib .admin import AdminSite
95from django .contrib .auth import get_user_model
106from django .db .models .signals import post_save , pre_save
1814
1915
2016class SortableBookTestCase (TestCase ):
21- if DJANGO_VERSION < (1 , 10 ):
22- fixtures = ['data-19.json' ]
23- elif DJANGO_VERSION < (1 , 11 ):
24- fixtures = ['data-110.json' ]
25- else :
26- fixtures = ['data-20.json' ]
27-
17+ fixtures = ['data.json' ]
2818 admin_password = 'secret'
2919 changelist_url = reverse ('admin:testapp_sortablebook_changelist' )
3020 ajax_update_url = reverse ('admin:testapp_sortablebook_sortable_update' )
You can’t perform that action at this time.
0 commit comments