mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Remove pointless fallback code (it just repeats the previously failed statement)
This commit is contained in:
parent
356d88dfde
commit
8b88dfa9cd
1 changed files with 1 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue