Moves staff_views to reporting/views

This commit is contained in:
Christopher Neugebauer 2016-09-02 11:20:03 +10:00
parent f9e26a2e49
commit 4664c4711a
2 changed files with 12 additions and 13 deletions

View file

@ -1,6 +1,3 @@
import forms
import views
from collections import namedtuple
from django.contrib.auth.decorators import user_passes_test
@ -13,12 +10,14 @@ from django.http import Http404
from django.shortcuts import render
from functools import wraps
from models import commerce
from models import inventory
from registrasion import forms
from registrasion.models import commerce
from registrasion.models import inventory
from registrasion import views
from reporting.reports import get_all_reports
from reporting.reports import Report
from reporting.reports import report_view
from reports import get_all_reports
from reports import Report
from reports import report_view
@user_passes_test(views._staff_only)

View file

@ -1,5 +1,5 @@
import views
import staff_views
from reporting import views as reporting_views
from django.conf.urls import include
from django.conf.urls import url
@ -37,10 +37,10 @@ public = [
reports = [
url(r"^$", staff_views.reports_list, name="reports_list"),
url(r"^credit_notes/?$", staff_views.credit_notes, name="credit_notes"),
url(r"^inventory/?$", staff_views.inventory, name="inventory"),
url(r"^items_sold/?$", staff_views.items_sold, name="items_sold"),
url(r"^$", reporting_views.reports_list, name="reports_list"),
url(r"^credit_notes/?$", reporting_views.credit_notes, name="inventory"),
url(r"^inventory/?$", reporting_views.inventory, name="inventory"),
url(r"^items_sold/?$", reporting_views.items_sold, name="items_sold"),
]