Django success url mixin
class SuccessUrlMixin:
def get_success_url(self):
model_name = self.model.__name__.lower()
app = self.model._meta.app_label
return reverse_lazy("{}:{}-list".format(app, model_name))