-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
428 additions
and
228 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,44 +1,21 @@ | ||
sudo: false | ||
language: python | ||
python: 2.7 | ||
cache: pip | ||
language: python | ||
python: 3.6 | ||
|
||
env: | ||
- TOX_ENV=py27-django18 | ||
- TOX_ENV=py27-django19 | ||
- TOX_ENV=py27-django110 | ||
- TOX_ENV=py27-django111 | ||
- TOX_ENV=py33-django18 | ||
- TOX_ENV=py34-django19 | ||
- TOX_ENV=py34-django110 | ||
- TOX_ENV=py34-django111 | ||
- TOX_ENV=py35-django19 | ||
- TOX_ENV=py35-django110 | ||
- TOX_ENV=py35-django111 | ||
- TOX_ENV=py36-django19 | ||
- TOX_ENV=py36-django110 | ||
- TOX_ENV=py36-django111 | ||
- TOX_ENV=pypy-django18 | ||
- TOX_ENV=pypy-django19 | ||
- TOX_ENV=pypy-django110 | ||
- TOX_ENV=pypy-django111 | ||
- TOX_ENV=pypy-django11 | ||
- TOX_ENV=py27-django11 | ||
- TOX_ENV=py35-django11 | ||
- TOX_ENV=py35-django20 | ||
- TOX_ENV=py36-django11 | ||
- TOX_ENV=py36-django20 | ||
- TOX_ENV=flake8 | ||
- TOX_ENV=docs | ||
- TOX_ENV=coveralls | ||
|
||
install: | ||
- pip install -r requirements.txt | ||
- pip install -r requirements_test.txt | ||
- pip install -e . | ||
- pip install tox | ||
- pip install coveralls | ||
|
||
script: | ||
- tox -e $TOX_ENV | ||
- py.test | ||
|
||
after_success: | ||
- coveralls | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: change | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
-e.[docs,tests] |
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
Binary file not shown.
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,14 @@ | ||
from django import forms | ||
|
||
from tags_input import fields | ||
|
||
from . import models | ||
|
||
|
||
class TagsInputForm(forms.Form): | ||
tag_input = fields.TagsInputField( | ||
models.SimpleName.objects.all(), | ||
create_missing=True, | ||
required=True, | ||
) | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from django.conf import urls | ||
from example.demo import views | ||
|
||
app_label = 'example.demo' | ||
urlpatterns = [ | ||
urls.url(r'^$', views.index, name='index'), | ||
] | ||
|
||
|
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,11 @@ | ||
from django_utils import view_decorators | ||
|
||
from . import forms | ||
|
||
|
||
@view_decorators.env | ||
def index(request): | ||
request.template = 'index.html' | ||
data = request.POST or None | ||
|
||
request.context['form'] = forms.TagsInputForm(data) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
-e.[tests] |
Oops, something went wrong.