From 23e0944e6215513791c0c49da960184e3a83f629 Mon Sep 17 00:00:00 2001 From: Harouna Diallo Date: Fri, 18 Jun 2021 08:45:15 +0000 Subject: [PATCH] Update version --- README.md | 11 ++++------- setup.cfg | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index db40c47..b370720 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,10 @@ INSTALLED_APPS = [
- {% fieldset form fieldsets '#42945c' %} + {{ form|fieldset:'#42945c' }}
``` -***Note*** : The first argument of `fieldset` tag is the `form` the second the list -`fieldsets` where you have defined the positioning of your different elements and -the last the color of the title of the fieldset (by default this value is at `#79AEC8`) +***Note*** : The fieldset filter receives the color of the titles of the form groups, by default this color is used: # 79AEC8) Complete Guide ---------- @@ -108,7 +106,6 @@ def home(request): #save... context = { 'form': form, - 'fieldsets': form.fieldsets, 'inline_form': InlineForm() } return render(request, 'home.html', context) @@ -127,8 +124,8 @@ def home(request):

Student form information

- {% fieldset form fieldsets '#42945c' %} - {% inline_fieldset inline_form '#42945c' "Note des eleves" %} + {{ form|fieldset:'#42945c' }} + {{ form_inline|inline_fieldset:"#42945c,Note des eleves" }}
diff --git a/setup.cfg b/setup.cfg index 7be6eb5..179a582 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = django-forms-fieldset -version = 0.1.4 +version = 1.0.0 description = Django form fieldset inspire django admin fieldset. long_description = file: README.rst url = https://github.com/hadpro24/django-forms-fieldset