Django success url mixin

Django -- Posted on May 26, 2019

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))
                  
   
            

Related Posts