#12694: Adding an object-tool requires template code duplication -------------------------------------------+-------------------------------- Reporter: andybak | Owner: DrMeers Status: closed | Milestone: 1.3 Component: django.contrib.admin | Version: SVN Resolution: fixed | Keywords: admin, blocks, template, object-tools, sprintdec2010 Stage: Ready for checkin | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Comment (by DrMeers):
Replying to [comment:7 adamv]: > On change_list, I'm not sure that this block should be within the "user has add permission" if block, since you may want to add tools/links that don't require the add permission. I agree, however we've been unable to come up with a solution to allow this that won't result in an (invalid) empty <ul> if the user does not have add permission and no additional tools are added. Suggestions most welcome. -- Ticket URL: <http://code.djangoproject.com/ticket/12694#comment:8> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.