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/forms.py
6 6
from models import PatientRecord
7 7
from states import STATE_CHOICES
8 8

  
9
class CreatePatientRecordForm(ModelForm):
10
    class Meta:
11
        model = PatientRecord
12

  
13

  
14 9
class EditPatientRecordForm(ModelForm):
15 10
    class Meta:
16 11
        model = PatientRecord
......
25 20
            label=u"test",
26 21
            choices=STATE_CHOICES, initial=(0,1,2,3,4))
27 22

  
23
class CivilStatusForm(ModelForm):
24
    class Meta:
25
        model = PatientRecord
26
        fields = ('first_name', 'last_name', 'birthdate', 'gender', 'nationality')

Also available in: Unified diff