diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e4a9911..3af6be1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,11 @@ Changelog ========= +3.0.1 (2023-05-02) +================== + +- fix redirect in FormValidationMixin + 3.0.0 (2023-05-02) ================== diff --git a/README.rst b/README.rst index b82dc2d..d6ad772 100644 --- a/README.rst +++ b/README.rst @@ -4,6 +4,11 @@ Django Bootstrap Modal Forms A Django plugin for creating AJAX driven forms in Bootstrap modal. +.. contents:: **Table of Contents** + :depth: 2 + :local: + :backlinks: none + Live Demo ========= @@ -11,6 +16,19 @@ Demo_ .. _Demo: http://trco.silkym.com/dbmf/ + +General information +=================== + +Opening an issue +**************** +When reporting an issue for ``django-bootstrap-modal-forms`` package, please prepare a publicly available repository having the issue you are reporting. The clear reproduce is the optimal way towards resolution. + +Contribute +********** +This is an Open Source project and any contribution is highly appreciated. + + Test and experiment on your machine =================================== @@ -1121,11 +1139,6 @@ For explanation how all the parts of the code work together see paragraph **Usag }); -Contribute -========== - -This is an Open Source project and any contribution is appreciated. - License ======= diff --git a/bootstrap_modal_forms/mixins.py b/bootstrap_modal_forms/mixins.py index b984932..2618bae 100644 --- a/bootstrap_modal_forms/mixins.py +++ b/bootstrap_modal_forms/mixins.py @@ -89,7 +89,7 @@ def form_valid(self, form): form.save() messages.success(self.request, self.success_message) - return HttpResponseRedirect(self.success_url) + return HttpResponseRedirect(self.get_success_url()) def is_ajax(meta): diff --git a/bootstrap_modal_forms/static/js/bootstrap5.modal.forms.js b/bootstrap_modal_forms/static/js/bootstrap5.modal.forms.js index 2503f7b..f1e5afc 100644 --- a/bootstrap_modal_forms/static/js/bootstrap5.modal.forms.js +++ b/bootstrap_modal_forms/static/js/bootstrap5.modal.forms.js @@ -1,6 +1,6 @@ /* django-bootstrap-modal-forms -version : 3.0.0 +version : 3.0.1 Copyright (c) 2023 Marcel Rupp */ diff --git a/bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.js b/bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.js index c4cf6bf..9281d4e 100644 --- a/bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.js +++ b/bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.js @@ -1,6 +1,6 @@ /* django-bootstrap-modal-forms -version : 3.0.0 +version : 3.0.1 Copyright (c) 2023 Uroš Trstenjak https://github.com/trco/django-bootstrap-modal-forms */ diff --git a/setup.py b/setup.py index 5f64d65..4c9d265 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name='django-bootstrap-modal-forms', - version='3.0.0', + version='3.0.1', packages=find_packages(), include_package_data=True, license='MIT License',