The delete_stage view does not take a post_url argument. Code follows, but, really, it seems there must be a better way. Thanks.
#from url.py: urlpatterns = patterns('', (r'^admin/(?P<app_label>course)/(? P<model_name>coursetagassignment)/(?P<object_id>\d*)/delete/(? P<post_url>.*)$' , 'admin.views.delete_stage_with_post_url'), ) #from myview.py: import django.contrib.admin.views.main def delete_stage_with_post_url(request, app_label, model_name, object_id, post_url=None): if request.POST: ret = django.contrib.admin.views.main.delete_stage(request, app_label, model_name, object_id) if post_url: return HttpResponseRedirect('/%s' % (post_url,)) else: return ret return django.contrib.admin.views.main.delete_stage(request, app_label, model_name, object_id) #from the template: <a href="/admin/course/coursetagassignment/{{ assignedtag.id }}/delete/ admin/course/course/{{ object_id }}/" class="deletelink" id="delete_id_courseattribute"></a> --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---