[Fixed]-Django Modelform Redirect to form-submitted content

1👍

From the docs

You can use the redirect shortcut and reverse function to reverse-resolve the name, in your case:

thing = form.save()    
redirect(reverse('thing_detail', kwargs={'slug': thing.slug))
👤arcegk

Leave a comment