How about pass in a context variable? render the template with something like
conext = { ...snip 'editable': form.entered <= date -3, ... snip ... } then in your template do {% if editable %} HTML Delete button {% endif %} On 07/28/2009 11:16 AM, Keith Pettit wrote: > I need to be able to limit the ability to delete a record after it's > been in the system for X days. Any ideas on how to approach that? > > {% if form.entered <= date -3 %} > HTML Delete button > {% endif %} > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---