Project

General

Profile

« Previous | Next » 

Revision f3407c83

Added by Jérôme Schneider over 11 years ago

dossiers: begin patient record edition

View differences:

calebasse/dossiers/urls.py
3 3
from calebasse.cbv import ListView, CreateView, DeleteView, UpdateView
4 4

  
5 5
from models import PatientRecord
6
from views import DossiersHomepageView
7
from forms import CreatePatientRecordForm, EditPatientRecordForm
6
from views import (PatientRecordsHomepageView, PatientRecordView,
7
                    patient_record)
8
from forms import EditPatientRecordForm
8 9

  
9 10
urlpatterns = patterns('',
10
    url(r'^$', DossiersHomepageView.as_view()),
11
    #url(r'^$', ListView.as_view(model=PatientRecord)),
12
    url(r'^new/$', CreateView.as_view(model=PatientRecord,
13
        form_class=CreatePatientRecordForm,
14
        template_name_suffix='_new')),
15
    url(r'^(?P<pk>\d+)/$', UpdateView.as_view(model=PatientRecord,
16
        form_class=EditPatientRecordForm,
17
        template_name_suffix='_edit')),
18
    url(r'^(?P<pk>\d+)/delete/$', DeleteView.as_view(model=PatientRecord)),
11
        url(r'^$', PatientRecordsHomepageView.as_view()),
12
        url(r'^view/(?P<pk>\d+)/$', patient_record),
19 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
#)

Also available in: Unified diff