Changes between Version 1 and Version 2 of Ticket #34979
- Timestamp:
- Nov 19, 2023, 9:19:47 PM (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34979 – Description
v1 v2 8 8 9 9 this is my model (autogenerated from an existing database): 10 11 {{{ 10 12 class TrtMeasurements(models.Model): 11 13 observation = models.OneToOneField('TrtObservations', models.DO_NOTHING, primary_key=True) … … 18 20 db_table = 'trt_measurements' 19 21 unique_together = (('observation', 'measurement_type'),) 22 }}} 23 20 24 21 25 While this makes sense for a single unique primary key, it is the wrong behavior for a composite primary key.