From 98374ca46644489ed165347e64150ad7dd8ec7d8 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 5 Dec 2019 14:12:05 +1100 Subject: [PATCH] Update to more recent libraries - Specify exact module versions --- InvenTree/company/models.py | 2 +- InvenTree/part/models.py | 2 +- requirements.txt | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index f16902f783..2df314fb27 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -17,7 +17,7 @@ from django.db.models import Sum from django.apps import apps from django.urls import reverse from django.conf import settings -from django.contrib.staticfiles.templatetags.staticfiles import static +from django.conf.urls.static import static from InvenTree.fields import InvenTreeURLField from InvenTree.status_codes import OrderStatus diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 809ef0a428..e265755778 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -18,7 +18,7 @@ from django.db.models import Sum from django.db.models import prefetch_related_objects from django.core.validators import MinValueValidator -from django.contrib.staticfiles.templatetags.staticfiles import static +from django.conf.urls.static import static from django.contrib.auth.models import User from django.db.models.signals import pre_delete from django.dispatch import receiver diff --git a/requirements.txt b/requirements.txt index 151f9d8433..e42bd6a697 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,17 +1,17 @@ -Django==2.2.4 # Django package +Django==2.2.8 # Django package pillow==5.0.0 # Image manipulation -djangorestframework==3.6.2 # DRF framework -django-cors-headers==2.5.3 # CORS headers extension for DRF -django_filter==1.0.2 # Extended filtering options +djangorestframework==3.10.3 # DRF framework +django-cors-headers==3.2.0 # CORS headers extension for DRF +django_filter==2.2.0 # Extended filtering options django-mptt==0.10.0 # Modified Preorder Tree Traversal django-dbbackup==3.2.0 # Database backup / restore functionality coreapi==2.3.0 # API documentation pygments==2.2.0 # Syntax highlighting tablib==0.13.0 # Import / export data files -django-crispy-forms==1.7.2 # Form helpers -django-import-export==1.0.0 # Data import / export for admin interface -django-cleanup==2.1.0 # Manage deletion of old / unused uploaded files -django-qr-code==1.0.0 # Generate QR codes +django-crispy-forms==1.8.1 # Form helpers +django-import-export==2.0.0 # Data import / export for admin interface +django-cleanup==4.0.0 # Manage deletion of old / unused uploaded files +django-qr-code==1.1.0 # Generate QR codes flake8==3.3.0 # PEP checking coverage==4.0.3 # Unit test coverage python-coveralls==2.9.1 # Coveralls linking (for Travis)