Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with djangoadmin_reorder #251

Open
pakal opened this issue Jan 16, 2022 · 0 comments
Open

Compatibility with djangoadmin_reorder #251

pakal opened this issue Jan 16, 2022 · 0 comments

Comments

@pakal
Copy link

pakal commented Jan 16, 2022

Just in case someone stumbles on this :

the sorting page doesn't get updated by djangoadmin_reorder, because it uses direct render and not template reponse ;

so one should replace in dminsortable\admin.py :

return render(request, self.sortable_change_list_template, context)

with

return TemplateResponse(request, self.sortable_change_list_template, context)

to make everything work again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant