This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Fixed bug in input_field tag
pull/160/head
Mike Olund
8 years ago
parent
3ba3508e35
commit
17ae31db5f
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
edivorce/apps/core/templatetags/input_field.py
+ 1
- 1
edivorce/apps/core/templatetags/input_field.py
View File
@ -33,7 +33,7 @@ def input_field(context, type, name='', value='', multiple='', **kwargs):
else
:
value_list
=
context
.
get
(
name
,
'
'
)
if
value
in
value_list
and
value
!=
'
'
:
if
value
_list
is
not
None
and
value
!=
'
'
and
value
in
value_list
:
tag
.
append
(
'
checked
'
)
tag
.
append
(
'
>
'
)
Write
Preview
Loading…
Cancel
Save