I am trying to allow users to view entries in the administrator, but not save anything. So I am trying to do something like this:
def save_model(self, request, obj, form, change): """Override save method so no one can save""" messages.error(request, "No Changes are permitted from this screen." " To edit projects visit the 'Projects' table, and make sure you are" " in the group 'Visitor_Program_Managers'.")
This works, however, I get two messages on the following screen:
My first message is above And then "... was successfully changed."
How to prevent a second message?
source share