From c0ff8a01c3384c0459cec9a56f8bae4a6d85c48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Ates?= Date: Mon, 26 Oct 2015 11:30:07 +0100 Subject: [PATCH] Add new fields to Patient model. --- src/biomon/models.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/biomon/models.py b/src/biomon/models.py index 82bfc47..a53f0a3 100644 --- a/src/biomon/models.py +++ b/src/biomon/models.py @@ -51,8 +51,8 @@ class TimestampedAbstractModel(models.Model): class Person(TimestampedAbstractModel): SEX = ( - (1, 'Male'), - (2, 'Female'), + (1, _(u'Male')), + (2, _(u'Female')), ) firstname = models.CharField(_(u'First name'), max_length=512) lastname = models.CharField(_(u'Last name'), @@ -117,6 +117,10 @@ class Person(TimestampedAbstractModel): class Patient(Person): monitoring_place = models.TextField(_(u'Monitoring place'), blank=True, null=True) + emergency_contact = models.TextField(_(u'Emergency contact'), + null=True, blank=True) + regular_doctor = models.TextField(_(u'Regular doctor'), + null=True, blank=True) simple_alert_profile = models.TextField(_(u'Simple monitoring profile'), blank=True, null=True) alert_profile = models.TextField(_(u'Monitoring profile'),