| 9 | this is my model (autogenerated from an existing database): |
| 10 | class TrtMeasurements(models.Model): |
| 11 | observation = models.OneToOneField('TrtObservations', models.DO_NOTHING, primary_key=True) |
| 12 | measurement_type = models.ForeignKey(TrtMeasurementTypes, models.DO_NOTHING, db_column='measurement_type') |
| 13 | measurement_value = models.FloatField() |
| 14 | comments = models.TextField(blank=True, null=True) |
| 15 | |
| 16 | class Meta: |
| 17 | managed = False |
| 18 | db_table = 'trt_measurements' |
| 19 | unique_together = (('observation', 'measurement_type'),) |
| 20 | |