-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from jproffitt/master
Support django 1.11
- Loading branch information
Showing
10 changed files
with
109 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ _build/ | |
*.pyc | ||
test.db | ||
example/example/settings/local.py | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
# Django-parsley changelog | ||
|
||
## 0.7 | ||
|
||
- Added support for django 1.10 and 1.11 | ||
- Dropped support for django 1.3 - 1.7 | ||
- Fixed issue where django version would be forced to 1.8 when installing django-parsley. More details <a href="https://github.com/agiliq/Django-parsley/issues/72" target="_blank">here</a>. | ||
- Added parsleyfy template tag | ||
|
||
## 0.6 | ||
|
||
- Added checkbox and radio button validation support. | ||
- Updated parsley.js, included with this library, to 2.0.7 | ||
- Changed error message attributes to confirm with parsley.js 2.x. More details <a href="https://github.com/agiliq/Django-parsley/issues/56" target="_blank">here</a>. | ||
- Changed RegexField attributes to confirm with parsley.js 2.x. More details <a href="https://github.com/agiliq/Django-parsley/issues/46" target="_blank">here</a>. | ||
- Changed RegexField attributes to confirm with parsley.js 2.x. More details <a href="https://github.com/agiliq/Django-parsley/issues/46" target="_blank">here</a>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
from django import template | ||
from django import template, VERSION | ||
|
||
from ..decorators import parsley_form | ||
|
||
register = template.Library() | ||
|
||
if VERSION[:2] >= (1, 9): | ||
# in django 1.9 and above, the simple_tag can do assignment | ||
tag_decorator = register.simple_tag | ||
else: | ||
# django 1.8 and below needs the assignment_tag | ||
tag_decorator = register.assignment_tag | ||
|
||
|
||
@register.assignment_tag() | ||
@tag_decorator() | ||
def parsleyfy(form): | ||
return parsley_form(form) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters