Skip to content

Commit 23e0944

Browse files
committed
Update version
1 parent 03456c5 commit 23e0944

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ INSTALLED_APPS = [
2727
<link rel="stylesheet" type="text/css" href="{% static 'forms_fieldset/css/main.css' %}">
2828

2929
<form>
30-
{% fieldset form fieldsets '#42945c' %}
30+
{{ form|fieldset:'#42945c' }}
3131
</form>
3232
```
33-
***Note*** : The first argument of `fieldset` tag is the `form` the second the list
34-
`fieldsets` where you have defined the positioning of your different elements and
35-
the last the color of the title of the fieldset (by default this value is at `#79AEC8`)
33+
***Note*** : The fieldset filter receives the color of the titles of the form groups, by default this color is used: # 79AEC8)
3634

3735
Complete Guide
3836
----------
@@ -108,7 +106,6 @@ def home(request):
108106
#save...
109107
context = {
110108
'form': form,
111-
'fieldsets': form.fieldsets,
112109
'inline_form': InlineForm()
113110
}
114111
return render(request, 'home.html', context)
@@ -127,8 +124,8 @@ def home(request):
127124
<h1>Student form information</h1>
128125
129126
<form>
130-
{% fieldset form fieldsets '#42945c' %}
131-
{% inline_fieldset inline_form '#42945c' "Note des eleves" %}
127+
{{ form|fieldset:'#42945c' }}
128+
{{ form_inline|inline_fieldset:"#42945c,Note des eleves" }}
132129
</form>
133130
</body>
134131
</html>

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = django-forms-fieldset
3-
version = 0.1.4
3+
version = 1.0.0
44
description = Django form fieldset inspire django admin fieldset.
55
long_description = file: README.rst
66
url = https://github.com/hadpro24/django-forms-fieldset

0 commit comments

Comments
 (0)