Changes between Version 1 and Version 2 of Ticket #34979


Ignore:
Timestamp:
Nov 19, 2023, 9:19:47 PM (12 months ago)
Author:
Evan Edward Hallein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34979 – Description

    v1 v2  
    88
    99this is my model (autogenerated from an existing database):
     10
     11{{{
    1012class TrtMeasurements(models.Model):
    1113    observation = models.OneToOneField('TrtObservations', models.DO_NOTHING, primary_key=True)
     
    1820        db_table = 'trt_measurements'
    1921        unique_together = (('observation', 'measurement_type'),)
     22}}}
     23
    2024
    2125While this makes sense for a single unique primary key, it is the wrong behavior for a composite primary key.
Back to Top