20 lines
907 B
Python
20 lines
907 B
Python
|
|
# urls.py
|
||
|
|
from django.urls import path
|
||
|
|
from .views import EnquiryUpdateView, EnquiryCreateView, customer_autocomplete, enquiry_list
|
||
|
|
from .views import add_enquiry, customer_autocomplete, load_contacts, customer_list, enquiry_detail
|
||
|
|
urlpatterns = [
|
||
|
|
|
||
|
|
path('enquiry/<int:pk>/', enquiry_detail, name='enquiry_detail'),
|
||
|
|
path('enquiries/<int:pk>/edit/', EnquiryUpdateView.as_view(), name='enquiry_edit'),
|
||
|
|
path('enquiry/create/', EnquiryCreateView.as_view(), name='enquiry_create'),
|
||
|
|
path('', enquiry_list, name='enquiry_list'),
|
||
|
|
path('customers/autocomplete', customer_autocomplete, name='customer_autocomplete'),
|
||
|
|
path('customers/', customer_list, name='customer_list'),
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
path('enquiries/add', add_enquiry, name='add_enquiry'),
|
||
|
|
path('customers-autocomplete/', customer_autocomplete, name='customer_autocomplete'),
|
||
|
|
path('load-contacts/', load_contacts, name='load_contacts'),
|
||
|
|
]
|