[Answered ]-Problem using generic views in django

2👍

You need to provide post_delete_redirect, this means url, where user should be redirected after object is deleted. You can find this in view signature:

def delete_object(request, model, post_delete_redirect, object_id=None,
        slug=None, slug_field='slug', template_name=None,
        template_loader=loader, extra_context=None, login_required=False,
        context_processors=None, template_object_name='object'):

Leave a comment