1
|
from django.conf.urls import patterns, url
|
2
|
|
3
|
from calebasse.cbv import ListView, CreateView, DeleteView, UpdateView
|
4
|
|
5
|
from models import PatientRecord
|
6
|
from views import (PatientRecordsHomepageView, PatientRecordView,
|
7
|
patient_record)
|
8
|
from forms import EditPatientRecordForm
|
9
|
|
10
|
urlpatterns = patterns('',
|
11
|
url(r'^$', PatientRecordsHomepageView.as_view()),
|
12
|
url(r'^view/(?P<pk>\d+)/$', patient_record),
|
13
|
)
|
14
|
|
15
|
# url(r'^new/$', CreateView.as_view(model=PatientRecord,
|
16
|
# form_class=CreatePatientRecordForm,
|
17
|
# template_name_suffix='_new')),
|
18
|
# url(r'^(?P<pk>\d+)/delete/$', DeleteView.as_view(model=PatientRecord)),
|
19
|
#)
|