Merge pull request #132 from Hovercross/master

Fix inline sorting after support for custom CSRF_COOKIE_NAME
master
Brandon Taylor 2016-02-23 12:34:19 -05:00
commit 08025503e1
1 changed files with 2 additions and 1 deletions

View File

@ -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: