In the "admin/submit_line.html" template I can see options such as "show_delete_link", etc but cannot for the life of me figure out a programmatic way to set these values to False. Ideally, I would only like to display the "Save" button.
(I realize I could override the "change_form" template for this model but since there are already options in the default admin template, shouldn't they work as expected?) My current method (that does not work) consists of overriding the "change_view" method in my model's ModelAdmin instance, providing an extra context, and rendering using that context. Looking at "django.contrib.admin.templatetags.admin_modify" seems to tell me that if I set "show_delete" to False in that extra context then it should hide the delete link. Currently it doesn't. Has anyone had any success in doing what I'm trying to do? Note: My end game is to have a placeholder model, such that each object loads specific XML from a particular source so I can set up my admin view to handle editing that and then save the XML back out. I don't need to support deleting objects of this type. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---