All, When creating a pluggable app, I've run across the need to use the django.views.generic.create_update.delete_object view. Below is a snippet of my URL patterns.
from django.conf.urls.defaults import * from django.core.urlresolvers import reverse urlpatterns = patterns("", url(r"list/", "django.views.generic.list_detail.object_list", dict (queryset = Note.objects.all(), template_name = "notes/list-notes- template.html", template_object_name = "note"), name = "list_notes"), url(r"delete/(?P<object_id>\d+)", "django.views.generic.create_update.delete_object", dict(model = Note, template_name = "notes/delete-note-template.html", post_delete_redirect = reverse("list_notes")), name = "delete_note"), ) I'm attempting to use the reverse() shortcut to set post_delete_redirect to a named URL defined in the same patterns tuple. Can this be done? I'm trying to avoid hardcoding the post_delete_redirect value into the urls.py. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---