From d1cd805f61b2d5868054b5371341c3b9b37b6de0 Mon Sep 17 00:00:00 2001 From: trco Date: Tue, 2 May 2023 12:01:15 +0200 Subject: [PATCH 1/6] add general information to README.rst --- README.rst | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index b82dc2d..b44799e 100644 --- a/README.rst +++ b/README.rst @@ -11,6 +11,19 @@ Demo_ .. _Demo: http://trco.silkym.com/dbmf/ + +General information +=================== + +Opening an issue +**************** +When reproting 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 reoslution. + +Contribute +********** +This is an Open Source project and any contribution is highly appreciated. + + Test and experiment on your machine =================================== @@ -1121,11 +1134,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 ======= From d294f921413977dfecd1ce8a21037d3333e5f383 Mon Sep 17 00:00:00 2001 From: trco Date: Tue, 2 May 2023 12:02:20 +0200 Subject: [PATCH 2/6] fix typos --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index b44799e..dd9b305 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ General information Opening an issue **************** -When reproting 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 reoslution. +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 ********** From 3b3325def76e6365fcabb44242479e826c5309e7 Mon Sep 17 00:00:00 2001 From: trco Date: Tue, 2 May 2023 12:12:28 +0200 Subject: [PATCH 3/6] add table of contents to README.rst --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index dd9b305..aa0e3ca 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 ========= From 6e6128f69637ab214a211d40e6240c2f9344b62f Mon Sep 17 00:00:00 2001 From: trco Date: Tue, 2 May 2023 12:14:28 +0200 Subject: [PATCH 4/6] update Table of Contents title --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index aa0e3ca..d6ad772 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ Django Bootstrap Modal Forms A Django plugin for creating AJAX driven forms in Bootstrap modal. -.. contents:: Table of Contents +.. contents:: **Table of Contents** :depth: 2 :local: :backlinks: none From 25e05c38a4a0c83ba136853677fc0a05220446d3 Mon Sep 17 00:00:00 2001 From: Christian Wiegand Date: Tue, 2 May 2023 15:02:30 +0200 Subject: [PATCH 5/6] Fix redirect of FormValidationMixin to be compliant to standard django: (#219) If return class property success_url if exists, if not return value from classes get_success_url method. If that doesn't exist return value from models get_absolute_url method. --- bootstrap_modal_forms/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): From 640c614084df2a094595aef93738c705dc3037cc Mon Sep 17 00:00:00 2001 From: trco Date: Tue, 2 May 2023 15:04:50 +0200 Subject: [PATCH 6/6] prepare for 3.0.1 release --- CHANGELOG.rst | 5 +++++ bootstrap_modal_forms/static/js/bootstrap5.modal.forms.js | 2 +- .../static/js/jquery.bootstrap.modal.forms.js | 2 +- setup.py | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) 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/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',