views.generic.edit.DeletionMixin.success_url

success_url

The url to redirect to when the nominated object has been successfully deleted.

success_url may contain dictionary string formatting, which will be interpolated against the object’s field attributes. For example, you could use success_url="/parent/{parent_id}/" to redirect to a URL composed out of the parent_id field on a model.

doc_Django
2016-10-09 18:41:05
Comments
Leave a Comment

Please login to continue.