mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-30 12:40:35 +00:00
Merge pull request #132 from Hovercross/master
Fix inline sorting after support for custom CSRF_COOKIE_NAME
This commit is contained in:
commit
08025503e1
1 changed files with 2 additions and 1 deletions
|
|
@ -238,7 +238,8 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
|||
extra_context = {}
|
||||
|
||||
extra_context.update({
|
||||
'change_form_template_extends': self.change_form_template_extends
|
||||
'change_form_template_extends': self.change_form_template_extends,
|
||||
'csrf_cookie_name': getattr(settings, 'CSRF_COOKIE_NAME', 'csrftoken')
|
||||
})
|
||||
|
||||
for klass in self.inlines:
|
||||
|
|
|
|||
Loading…
Reference in a new issue