In my Django project, depending on the groups my users are in and other factors, I need my users to only be able to access some things or the information they get from the database to be limited depending on their access level. there is also a hierarchy on some of the access levels. Now this affects my model managers, views and my templates. Therefore, if I don't define a proper structure, it will be very troublesome in the future. I was wondering if there is a suitable pattern and how I would be able to create a decent Django project for this ( access levels are object level). I would be grateful if somebody could help me.
Aucun commentaire:
Enregistrer un commentaire