mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
django v2 compatible: tests needed
This commit is contained in:
parent
160c256327
commit
b6a870c0e5
106
requirements.txt
106
requirements.txt
@ -1,53 +1,53 @@
|
||||
apipkg==1.4
|
||||
attrs==18.1.0
|
||||
certifi==2018.4.16
|
||||
chardet==3.0.4
|
||||
coverage==4.5.1
|
||||
coveralls==1.3.0
|
||||
dateparser==0.7.0
|
||||
django-cors-headers==2.4.0
|
||||
django-crispy-forms==1.7.2
|
||||
django-extensions==2.0.7
|
||||
django-filter==1.1.0
|
||||
django-flat-responsive==2.0
|
||||
django==1.11.13
|
||||
djangorestframework==3.8.2
|
||||
docopt==0.6.2
|
||||
execnet==1.5.0
|
||||
factory-boy==2.11.1
|
||||
faker==0.8.15
|
||||
filemagic==1.6
|
||||
flake8==3.5.0
|
||||
fuzzywuzzy==0.15.0
|
||||
gunicorn==19.8.1
|
||||
idna==2.6
|
||||
inotify_simple==1.1.7; sys_platform == 'linux'
|
||||
langdetect==1.0.7
|
||||
mccabe==0.6.1
|
||||
more-itertools==4.1.0
|
||||
pdftotext==2.0.2
|
||||
pillow==5.1.0
|
||||
pluggy==0.6.0
|
||||
py==1.5.3
|
||||
pycodestyle==2.3.1
|
||||
pyflakes==1.6.0
|
||||
pyocr==0.5.1
|
||||
pytest-cov==2.5.1
|
||||
pytest-django==3.2.1
|
||||
pytest-env==0.6.2
|
||||
pytest-forked==0.2
|
||||
pytest-sugar==0.9.1
|
||||
pytest-xdist==1.22.2
|
||||
pytest==3.5.1
|
||||
python-dateutil==2.7.3
|
||||
python-dotenv==0.8.2
|
||||
python-gnupg==0.4.2
|
||||
python-levenshtein==0.12.0
|
||||
pytz==2018.4
|
||||
regex==2018.2.21
|
||||
requests==2.18.4
|
||||
six==1.11.0
|
||||
termcolor==1.1.0
|
||||
text-unidecode==1.2
|
||||
tzlocal==1.5.1
|
||||
urllib3==1.22
|
||||
apipkg>=1.4
|
||||
attrs>=18.1.0
|
||||
certifi>=2018.4.16
|
||||
chardet>=3.0.4
|
||||
coverage>=4.5.1
|
||||
coveralls>=1.3.0
|
||||
dateparser>=0.7.0
|
||||
django-cors-headers>=2.4.0
|
||||
django-crispy-forms>=1.7.2
|
||||
django-extensions>=2.0.7
|
||||
django-filter>=2.0.0
|
||||
django-flat-responsive>=2.0
|
||||
django>=2.1
|
||||
djangorestframework>=3.8.2
|
||||
docopt>=0.6.2
|
||||
execnet>=1.5.0
|
||||
factory-boy>=2.11.1
|
||||
faker>=0.8.15
|
||||
filemagic>=1.6
|
||||
flake8>=3.5.0
|
||||
fuzzywuzzy>=0.15.0
|
||||
gunicorn>=19.8.1
|
||||
idna>=2.6
|
||||
inotify_simple>=1.1.7; sys_platform == 'linux'
|
||||
langdetect>=1.0.7
|
||||
mccabe>=0.6.1
|
||||
more-itertools>=4.1.0
|
||||
pdftotext>=2.0.2
|
||||
pillow>=5.1.0
|
||||
pluggy>=0.6.0
|
||||
py>=1.5.3
|
||||
pycodestyle>=2.3.1
|
||||
pyflakes>=1.6.0
|
||||
pyocr>=0.5.1
|
||||
pytest-cov>=2.5.1
|
||||
pytest-django>=3.2.1
|
||||
pytest-env>=0.6.2
|
||||
pytest-forked>=0.2
|
||||
pytest-sugar>=0.9.1
|
||||
pytest-xdist>=1.22.2
|
||||
pytest>=3.5.1
|
||||
python-dateutil>=2.7.3
|
||||
python-dotenv>=0.8.2
|
||||
python-gnupg>=0.4.2
|
||||
python-levenshtein>=0.12.0
|
||||
pytz>=2018.4
|
||||
regex>=2018.2.21
|
||||
requests>=2.18.4
|
||||
six>=1.11.0
|
||||
termcolor>=1.1.0
|
||||
text-unidecode>=1.2
|
||||
tzlocal>=1.5.1
|
||||
urllib3>=1.22
|
||||
|
@ -3,7 +3,10 @@ from datetime import datetime
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
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 .models import Correspondent, Tag, Document, Log
|
||||
|
@ -10,7 +10,10 @@ from collections import OrderedDict
|
||||
from fuzzywuzzy import fuzz
|
||||
|
||||
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.template.defaultfilters import slugify
|
||||
from django.utils import timezone
|
||||
|
@ -28,9 +28,9 @@ urlpatterns = [
|
||||
# API
|
||||
url(
|
||||
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
|
||||
url(
|
||||
|
@ -3,6 +3,6 @@ from django.db import models
|
||||
|
||||
class Reminder(models.Model):
|
||||
|
||||
document = models.ForeignKey("documents.Document")
|
||||
document = models.ForeignKey("documents.Document",on_delete=models.DO_NOTHING)
|
||||
date = models.DateTimeField()
|
||||
note = models.TextField(blank=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user