I have two different groups who are allowed to access Django-Admin. They are allowed to view all Fields in a Model, but shall not edit all Field. For example G1 is allowed to edit "price" and "ean" whilst G2 is allowed to edit "ean" and "detail".
I tried the version given here, but I also want to restrict the editability in the detail view of a model object.
EDIT: currently, I'm trying to figure out how to access the request user in a ModelAdmin, as I've registered the "special-field-permissions" in the Meta of the model and am trying to modify the readonly_fields depending on the group. any idea how to get the user?