Remove pointless fallback code (it just repeats the previously failed statement)

master
Jaap Roes 2017-03-16 15:13:13 +01:00
parent 356d88dfde
commit 8b88dfa9cd
1 changed files with 1 additions and 6 deletions

View File

@ -82,12 +82,7 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
def get_urls(self):
urls = super(SortableAdmin, self).get_urls()
opts = self.model._meta
try:
info = opts.app_label, opts.model_name
except AttributeError:
# Django < 1.7
info = opts.app_label, opts.model_name
info = self.model._meta.app_label, self.model._meta.model_name
# this ajax view changes the order of instances of the model type
admin_do_sorting_url = url(