|
|
@@ -6,8 +6,8 @@ class Indicator(models.Model):
|
|
|
""" Модель (сущность) - Измерение """
|
|
|
id = models.AutoField(primary_key=True)
|
|
|
type = models.ForeignKey('indicatortype.IndicatorType', on_delete=models.CASCADE)
|
|
|
- value1 = models.DecimalField(max_digits=8, decimal_places=3)
|
|
|
- value2 = models.DecimalField(max_digits=8, decimal_places=3, blank=True, null=True)
|
|
|
+ value1 = models.CharField(max_length=15)
|
|
|
+ value2 = models.CharField(max_length=15, blank=True, null=True)
|
|
|
value_added = models.DateTimeField()
|
|
|
patient = models.ForeignKey('patient.Patient', on_delete=models.CASCADE)
|
|
|
last_modified = models.DateTimeField(auto_now=True)
|