jrief / django-admin-sortable2

Generic drag-and-drop ordering for objects in the Django admin interface
https://django-admin-sortable2.readthedocs.io/en/latest/
Other
753 stars 179 forks source link

Hide sort column if user has only "view" permissions... #255

Open jedie opened 4 years ago

jedie commented 4 years ago

How to hide sortable column if change permissions missing?

jrief commented 4 years ago

Sorry, but this currently is not implemented.

jedie commented 4 years ago

I also looked around and didn't find a easy way to implement this :(

girase1pranay commented 2 months ago

There is a workaround for it: Override get_list_display method for ModelAdmin class, remove __reorder__ from get_list_display.