2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-01 17:41:33 +00:00

Add a new verision of django-qr-code

Official package does not (yet) support django 3.0
This commit is contained in:
Oliver Walters
2020-04-20 00:10:16 +10:00
parent 3a64d0bc8f
commit ff91c4ec53
3 changed files with 7 additions and 6 deletions

View File

@@ -101,7 +101,7 @@ INSTALLED_APPS = [
'crispy_forms', # Improved form rendering
'import_export', # Import / export tables to file
'django_cleanup', # Automatically delete orphaned MEDIA files
# 'qr_code', # Generate QR codes
'qr_code', # Generate QR codes
'mptt', # Modified Preorder Tree Traversal
'markdownx', # Markdown editing
'markdownify', # Markdown template rendering

View File

@@ -8,8 +8,7 @@ Passes URL lookup downstream to each app as required.
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import views as auth_views
# TODO - Remove this line once a new QR solution has been implemented
# from qr_code import urls as qr_code_urls
from qr_code import urls as qr_code_urls
from company.urls import company_urls
from company.urls import supplier_part_urls
@@ -100,8 +99,7 @@ urlpatterns = [
url(r'^admin/', admin.site.urls, name='inventree-admin'),
# TODO - Remove this line!
# url(r'^qr_code/', include(qr_code_urls, namespace='qr_code')),
url(r'^qr_code/', include(qr_code_urls, namespace='qr_code')),
url(r'^index/', IndexView.as_view(), name='index'),
url(r'^search/', SearchView.as_view(), name='search'),