-
-
Notifications
You must be signed in to change notification settings - Fork 283
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 #147 from elwoodxblues/fix-django-1.11-compatibilty
Fix compatibility issues with Django 1.11
- Loading branch information
Showing
9 changed files
with
70 additions
and
76 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 |
---|---|---|
@@ -1,34 +1,33 @@ | ||
language: python | ||
sudo: false | ||
install: | ||
- pip install tox codecov | ||
script: | ||
- tox | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
env: | ||
- TOXENV=py27-django18 | ||
- TOXENV=py27-django110 | ||
- TOXENV=py27-django111 | ||
- TOXENV=py34-django18 | ||
- TOXENV=py34-django110 | ||
- TOXENV=py34-django111 | ||
- TOXENV=py34-django_master | ||
- TOXENV=py35-django18 | ||
- TOXENV=py35-django110 | ||
- TOXENV=py35-django111 | ||
- TOXENV=py35-django_master | ||
- DJANGO="1.11" | ||
- DJANGO="2.0" | ||
- DJANGO="master" | ||
matrix: | ||
allow_failures: | ||
- env: TOXENV=py27-django111 | ||
- env: TOXENV=py34-django111 | ||
- env: TOXENV=py35-django111 | ||
- env: TOXENV=py34-django_master | ||
- env: TOXENV=py35-django_master | ||
after_success: | ||
- codecov | ||
addons: | ||
apt: | ||
sources: | ||
- deadsnakes | ||
packages: | ||
- python3.5 | ||
- python3.5-dev | ||
- python: "3.4" | ||
env: DJANGO="2.0" | ||
- python: "3.4" | ||
env: DJANGO="master" | ||
- python: "3.5" | ||
env: DJANGO="2.0" | ||
- python: "3.5" | ||
env: DJANGO="master" | ||
- python: "3.6" | ||
env: DJANGO="2.0" | ||
- python: "3.6" | ||
env: DJANGO="master" | ||
exclude: | ||
- python: "2.7" | ||
env: DJANGO="2.0" | ||
- python: "2.7" | ||
env: DJANGO="master" | ||
after_success: codecov | ||
install: pip install tox-travis codecov | ||
script: tox |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
<span style="white-space: nowrap"> | ||
{{ month }} / {{ year }} | ||
{% with widget.subwidgets.0 as month %} | ||
{% with widget.subwidgets.1 as year %} | ||
{% include month.template_name with widget=month %} / {% include year.template_name with widget=year %} | ||
{% endwith %} | ||
{% endwith %} | ||
</span> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<select {% include "django/forms/widgets/attrs.html" %}>{% for group_name, group_choices, group_index in widget.optgroups %}{% if group_name %} | ||
<optgroup label="{{ group_name }}">{% endif %}{% for option in group_choices %} | ||
{% include option.template_name with widget=option %}{% endfor %}{% if group_name %} | ||
</optgroup>{% endif %}{% endfor %} | ||
</select> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<input type="{{ widget.type }}" {% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} /> |
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