Migrates to the less-deprecated URL syntax
This commit is contained in:
parent
d05a41d4f6
commit
3225a353e0
1 changed files with 28 additions and 17 deletions
|
@ -2,21 +2,32 @@ import views
|
||||||
|
|
||||||
from django.conf.urls import url, patterns
|
from django.conf.urls import url, patterns
|
||||||
|
|
||||||
urlpatterns = patterns(
|
from .views import (
|
||||||
"registrasion.views",
|
product_category,
|
||||||
url(r"^category/([0-9]+)$", "product_category", name="product_category"),
|
checkout,
|
||||||
url(r"^checkout$", "checkout", name="checkout"),
|
credit_note,
|
||||||
url(r"^credit_note/([0-9]+)$", views.credit_note, name="credit_note"),
|
invoice,
|
||||||
url(r"^invoice/([0-9]+)$", "invoice", name="invoice"),
|
manual_payment,
|
||||||
url(r"^invoice/([0-9]+)/([A-Z0-9]+)$", views.invoice, name="invoice"),
|
refund,
|
||||||
url(r"^invoice/([0-9]+)/manual_payment$",
|
invoice_access,
|
||||||
views.manual_payment, name="manual_payment"),
|
edit_profile,
|
||||||
url(r"^invoice/([0-9]+)/refund$",
|
guided_registration,
|
||||||
views.refund, name="refund"),
|
|
||||||
url(r"^invoice_access/([A-Z0-9]+)$", views.invoice_access,
|
|
||||||
name="invoice_access"),
|
|
||||||
url(r"^profile$", "edit_profile", name="attendee_edit"),
|
|
||||||
url(r"^register$", "guided_registration", name="guided_registration"),
|
|
||||||
url(r"^register/([0-9]+)$", "guided_registration",
|
|
||||||
name="guided_registration"),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
url(r"^category/([0-9]+)$", product_category, name="product_category"),
|
||||||
|
url(r"^checkout$", checkout, name="checkout"),
|
||||||
|
url(r"^credit_note/([0-9]+)$", credit_note, name="credit_note"),
|
||||||
|
url(r"^invoice/([0-9]+)$", invoice, name="invoice"),
|
||||||
|
url(r"^invoice/([0-9]+)/([A-Z0-9]+)$", invoice, name="invoice"),
|
||||||
|
url(r"^invoice/([0-9]+)/manual_payment$",
|
||||||
|
manual_payment, name="manual_payment"),
|
||||||
|
url(r"^invoice/([0-9]+)/refund$",
|
||||||
|
refund, name="refund"),
|
||||||
|
url(r"^invoice_access/([A-Z0-9]+)$", invoice_access,
|
||||||
|
name="invoice_access"),
|
||||||
|
url(r"^profile$", edit_profile, name="attendee_edit"),
|
||||||
|
url(r"^register$", guided_registration, name="guided_registration"),
|
||||||
|
url(r"^register/([0-9]+)$", guided_registration,
|
||||||
|
name="guided_registration"),
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue