Revision dfd4bd12
Added by Jérôme Schneider over 12 years ago
calebasse/dossiers/urls.py | ||
---|---|---|
5 | 5 |
from models import PatientRecord |
6 | 6 |
from views import (patientrecord_home, patient_record, state_form, |
7 | 7 |
new_patient_record, patientrecord_delete, new_patient_contact, |
8 |
new_patient_address) |
|
8 |
new_patient_address, delete_patient_contact, delete_patient_address)
|
|
9 | 9 |
from forms import EditPatientRecordForm |
10 | 10 |
|
11 | 11 |
urlpatterns = patterns('', |
... | ... | |
13 | 13 |
url(r'^new$', new_patient_record), |
14 | 14 |
url(r'^(?P<pk>\d+)/view$', patient_record), |
15 | 15 |
url(r'^(?P<pk>\d+)/delete$', patientrecord_delete), |
16 |
url(r'^(?P<patientrecord_id>\d+)/new-contact$', new_patient_contact), |
|
17 |
url(r'^(?P<patientrecord_id>\d+)/new-address$', new_patient_address), |
|
18 |
url(r'^(?P<pk>\d+)/update-state$', state_form), |
|
16 |
url(r'^(?P<patientrecord_id>\d+)/update-state$', state_form), |
|
17 |
url(r'^(?P<patientrecord_id>\d+)/address/new$', new_patient_address), |
|
18 |
url(r'^(?P<patientrecord_id>\d+)/address/(?P<pk>\d+)/del$', delete_patient_address), |
|
19 |
url(r'^(?P<patientrecord_id>\d+)/contact/new$', new_patient_contact), |
|
20 |
url(r'^(?P<patientrecord_id>\d+)/contact/(?P<pk>\d+)/del$', delete_patient_contact), |
|
19 | 21 |
) |
Also available in: Unified diff
dossiers: improve urls and support delete contact or address