re-structures the URLs a bit, puts the items sold report under reports/items_sold
This commit is contained in:
parent
db8f428ee1
commit
5c41a3576c
1 changed files with 15 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
||||||
import views
|
import views
|
||||||
import staff_views
|
import staff_views
|
||||||
|
|
||||||
from django.conf.urls import url, patterns
|
from django.conf.urls import include
|
||||||
|
from django.conf.urls import url
|
||||||
|
|
||||||
from .views import (
|
from .views import (
|
||||||
product_category,
|
product_category,
|
||||||
|
@ -15,7 +16,8 @@ from .views import (
|
||||||
guided_registration,
|
guided_registration,
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
|
public = [
|
||||||
url(r"^category/([0-9]+)$", product_category, name="product_category"),
|
url(r"^category/([0-9]+)$", product_category, name="product_category"),
|
||||||
url(r"^checkout$", checkout, name="checkout"),
|
url(r"^checkout$", checkout, name="checkout"),
|
||||||
url(r"^credit_note/([0-9]+)$", credit_note, name="credit_note"),
|
url(r"^credit_note/([0-9]+)$", credit_note, name="credit_note"),
|
||||||
|
@ -31,5 +33,15 @@ urlpatterns = [
|
||||||
url(r"^register$", guided_registration, name="guided_registration"),
|
url(r"^register$", guided_registration, name="guided_registration"),
|
||||||
url(r"^register/([0-9]+)$", guided_registration,
|
url(r"^register/([0-9]+)$", guided_registration,
|
||||||
name="guided_registration"),
|
name="guided_registration"),
|
||||||
url(r"^report$", staff_views.items_sold, name="items_sold"), # TODO: rm
|
]
|
||||||
|
|
||||||
|
|
||||||
|
reports = [
|
||||||
|
url(r"^items_sold/?$", staff_views.items_sold, name="items_sold"),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
url(r"^reports/", include(reports)),
|
||||||
|
url(r"^", include(public)) # This one must go last.
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue