django v2 compatible: tests needed

This commit is contained in:
dadosch 2018-08-24 21:31:43 +02:00
parent 160c256327
commit b6a870c0e5
5 changed files with 64 additions and 58 deletions

View File

@ -1,53 +1,53 @@
apipkg==1.4 apipkg>=1.4
attrs==18.1.0 attrs>=18.1.0
certifi==2018.4.16 certifi>=2018.4.16
chardet==3.0.4 chardet>=3.0.4
coverage==4.5.1 coverage>=4.5.1
coveralls==1.3.0 coveralls>=1.3.0
dateparser==0.7.0 dateparser>=0.7.0
django-cors-headers==2.4.0 django-cors-headers>=2.4.0
django-crispy-forms==1.7.2 django-crispy-forms>=1.7.2
django-extensions==2.0.7 django-extensions>=2.0.7
django-filter==1.1.0 django-filter>=2.0.0
django-flat-responsive==2.0 django-flat-responsive>=2.0
django==1.11.13 django>=2.1
djangorestframework==3.8.2 djangorestframework>=3.8.2
docopt==0.6.2 docopt>=0.6.2
execnet==1.5.0 execnet>=1.5.0
factory-boy==2.11.1 factory-boy>=2.11.1
faker==0.8.15 faker>=0.8.15
filemagic==1.6 filemagic>=1.6
flake8==3.5.0 flake8>=3.5.0
fuzzywuzzy==0.15.0 fuzzywuzzy>=0.15.0
gunicorn==19.8.1 gunicorn>=19.8.1
idna==2.6 idna>=2.6
inotify_simple==1.1.7; sys_platform == 'linux' inotify_simple>=1.1.7; sys_platform == 'linux'
langdetect==1.0.7 langdetect>=1.0.7
mccabe==0.6.1 mccabe>=0.6.1
more-itertools==4.1.0 more-itertools>=4.1.0
pdftotext==2.0.2 pdftotext>=2.0.2
pillow==5.1.0 pillow>=5.1.0
pluggy==0.6.0 pluggy>=0.6.0
py==1.5.3 py>=1.5.3
pycodestyle==2.3.1 pycodestyle>=2.3.1
pyflakes==1.6.0 pyflakes>=1.6.0
pyocr==0.5.1 pyocr>=0.5.1
pytest-cov==2.5.1 pytest-cov>=2.5.1
pytest-django==3.2.1 pytest-django>=3.2.1
pytest-env==0.6.2 pytest-env>=0.6.2
pytest-forked==0.2 pytest-forked>=0.2
pytest-sugar==0.9.1 pytest-sugar>=0.9.1
pytest-xdist==1.22.2 pytest-xdist>=1.22.2
pytest==3.5.1 pytest>=3.5.1
python-dateutil==2.7.3 python-dateutil>=2.7.3
python-dotenv==0.8.2 python-dotenv>=0.8.2
python-gnupg==0.4.2 python-gnupg>=0.4.2
python-levenshtein==0.12.0 python-levenshtein>=0.12.0
pytz==2018.4 pytz>=2018.4
regex==2018.2.21 regex>=2018.2.21
requests==2.18.4 requests>=2.18.4
six==1.11.0 six>=1.11.0
termcolor==1.1.0 termcolor>=1.1.0
text-unidecode==1.2 text-unidecode>=1.2
tzlocal==1.5.1 tzlocal>=1.5.1
urllib3==1.22 urllib3>=1.22

View File

@ -3,7 +3,10 @@ from datetime import datetime
from django.conf import settings from django.conf import settings
from django.contrib import admin from django.contrib import admin
from django.contrib.auth.models import User, Group from django.contrib.auth.models import User, Group
from django.core.urlresolvers import reverse try:
from django.core.urlresolvers import reverse
except:
from django.urls import reverse
from django.templatetags.static import static from django.templatetags.static import static
from .models import Correspondent, Tag, Document, Log from .models import Correspondent, Tag, Document, Log

View File

@ -10,7 +10,10 @@ from collections import OrderedDict
from fuzzywuzzy import fuzz from fuzzywuzzy import fuzz
from django.conf import settings from django.conf import settings
from django.core.urlresolvers import reverse try:
from django.core.urlresolvers import reverse
except:
from django.urls import reverse
from django.db import models from django.db import models
from django.template.defaultfilters import slugify from django.template.defaultfilters import slugify
from django.utils import timezone from django.utils import timezone

View File

@ -28,9 +28,9 @@ urlpatterns = [
# API # API
url( url(
r"^api/auth/", r"^api/auth/",
include('rest_framework.urls', namespace="rest_framework") include(('rest_framework.urls','rest_framework'), namespace="rest_framework")
), ),
url(r"^api/", include(router.urls, namespace="drf")), url(r"^api/", include((router.urls, 'drf'), namespace="drf")),
# File downloads # File downloads
url( url(

View File

@ -3,6 +3,6 @@ from django.db import models
class Reminder(models.Model): class Reminder(models.Model):
document = models.ForeignKey("documents.Document") document = models.ForeignKey("documents.Document",on_delete=models.DO_NOTHING)
date = models.DateTimeField() date = models.DateTimeField()
note = models.TextField(blank=True) note = models.TextField(blank=True)