mercredi 16 janvier 2019

How to change Django Admin group permissions multi select options into multi select checkbox

I am working on a Django based project which uses Django (v2.0.4) in Python 3.6 installed Ubuntu system.

The problem is, when I select permissions for the group, I get multi-select field but I do not want that and in place of it, I want to show permissions available for the groups as checkboxes so that User could check/uncheck permissions easily from there.

Screenshot - Multi select input box

I tried to search for the solutions in many places including Github, StackOverflow etc. and I found below links somewhat good but not so helpful.

I also inspected HTML code on a browser, copied classes, elements and searched in Django installed folder to look at the file locations containing the same. I found multiple files including CSS, JS etc. Editing these files may introduce new issues so I do not want to go with this option.

Below screenshots shows this.

Screenshot - Inspected code

Any help would be appreciated.




Aucun commentaire:

Enregistrer un commentaire