I would like to hide all the \"Save\" buttons in Django\'s Admin\'s Change Form, for a specific model, when certain conditions are met. Therefore, I override the chang
You may override render_change_form method in ModelAdmin subclass. In this method obj is available as argument and you can check certain conditions.
class OrderAdmin(admin.ModelAdmin):
def render_change_form(self, request, context, add=False, change=False, form_url='', obj=None):
context.update({
'show_save': False,
'show_save_and_continue': False,
'show_delete': False
})
return super().render_change_form(request, context, add, change, form_url, obj)