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 file changed
+2
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user