I'm trying to let users view records in the admin but not save anything. So I'm 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 next screen:
My message above first And then a "The ... was changed successfully."
How can I prevent the second message?