-
-
Notifications
You must be signed in to change notification settings - Fork 152
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 #431 from arthur-wsw/django_1_8
Django 1.8 and 1.9 compatibility
- Loading branch information
Showing
66 changed files
with
874 additions
and
696 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins. | ||
|
||
This directory caches those eggs to prevent repeated downloads. | ||
|
||
However, it is safe to delete this directory. | ||
|
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 |
---|---|---|
|
@@ -59,3 +59,8 @@ logfile | |
|
||
# test media upload | ||
media | ||
|
||
# PyCharm | ||
.idea/ | ||
|
||
.cache |
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,47 +1,28 @@ | ||
sudo: false | ||
language: python | ||
python: "2.7" | ||
python: | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
env: | ||
matrix: | ||
- TOX_ENV=py27-dj1.6.x | ||
- TOX_ENV=py27-dj1.7.x | ||
- TOX_ENV=py27-dj1.8.x | ||
- TOX_ENV=py27-dj1.9.x | ||
- TOX_ENV=py33-dj1.6.x | ||
- TOX_ENV=py33-dj1.7.x | ||
- TOX_ENV=py33-dj1.8.x | ||
- TOX_ENV=py33-dj1.9.x | ||
- TOX_ENV=py34-dj1.6.x | ||
- TOX_ENV=py34-dj1.7.x | ||
- TOX_ENV=py34-dj1.8.x | ||
- TOX_ENV=py34-dj1.9.x | ||
- TOX_ENV=pypy-dj1.6.x | ||
- TOX_ENV=pypy-dj1.7.x | ||
- TOX_ENV=pypy-dj1.8.x | ||
- TOX_ENV=pypy-dj1.9.x | ||
- TOX_ENV=pypy3-dj1.6.x | ||
- TOX_ENV=pypy3-dj1.8.x | ||
- TOX_ENV=pypy3-dj1.9.x | ||
- DJANGO=1.8 | ||
- DJANGO=1.9 | ||
- DJANGO=master | ||
matrix: | ||
exclude: | ||
- python: "3.3" | ||
env: DJANGO=1.9 | ||
- python: "3.3" | ||
env: DJANGO=master | ||
allow_failures: | ||
- python: "2.7" | ||
env: DJANGO=master | ||
- python: "3.4" | ||
env: DJANGO=master | ||
- python: "3.5" | ||
env: DJANGO=master | ||
install: | ||
- pip install tox | ||
script: | ||
- tox -e $TOX_ENV | ||
# for now commented. We have to figure which version use for coverage | ||
# and coveralls | ||
#after_success: | ||
# - coverage report | ||
# - pip install --quiet python-coveralls | ||
# - coveralls | ||
matrix: | ||
allow_failures: | ||
- env: TOX_ENV=py27-dj1.8.x | ||
- env: TOX_ENV=py27-dj1.9.x | ||
- env: TOX_ENV=py33-dj1.8.x | ||
- env: TOX_ENV=py33-dj1.9.x | ||
- env: TOX_ENV=py34-dj1.8.x | ||
- env: TOX_ENV=py34-dj1.9.x | ||
- env: TOX_ENV=pypy-dj1.8.x | ||
- env: TOX_ENV=pypy-dj1.9.x | ||
- env: TOX_ENV=pypy3-dj1.8.x | ||
- env: TOX_ENV=pypy3-dj1.9.x | ||
- env: TOX_ENV=pypy3-dj1.9.x | ||
- tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO |
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
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,14 @@ | ||
from django.apps import AppConfig | ||
from django.db.models.signals import post_migrate | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
from djadmin2.permissions import create_view_permissions | ||
|
||
|
||
class Djadmin2Config(AppConfig): | ||
name = 'djadmin2' | ||
verbose_name = _("Django Admin2") | ||
|
||
def ready(self): | ||
post_migrate.connect(create_view_permissions, | ||
dispatch_uid="django-admin2.djadmin2.permissions.create_view_permissions") |
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
Oops, something went wrong.