Tidies up reporting URLs

This commit is contained in:
Christopher Neugebauer 2016-09-03 12:16:52 +10:00
parent da42bb2bac
commit 96e691c5dd

View file

@ -1,4 +1,4 @@
from reporting import views as reporting_views from reporting import views as rv
from django.conf.urls import include from django.conf.urls import include
from django.conf.urls import url from django.conf.urls import url
@ -36,20 +36,12 @@ public = [
reports = [ reports = [
url(r"^$", reporting_views.reports_list, name="reports_list"), url(r"^$", rv.reports_list, name="reports_list"),
url(r"^attendee/?$", reporting_views.attendee, name="attendee"), url(r"^attendee/?$", rv.attendee, name="attendee"),
url(r"^attendee/([0-9]*)$", reporting_views.attendee, name="attendee"), url(r"^attendee/([0-9]*)$", rv.attendee, name="attendee"),
url( url(r"^credit_notes/?$", rv.credit_notes, name="credit_notes"),
r"^credit_notes/?$", url(r"^items_sold/?$", rv.items_sold, name="items_sold"),
reporting_views.credit_notes, url(r"^product_status/?$", rv.product_status, name="product_status"),
name="credit_notes"
),
url(
r"^product_status/?$",
reporting_views.product_status,
name="product_status",
),
url(r"^items_sold/?$", reporting_views.items_sold, name="items_sold"),
] ]