Ticket #200 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Failure when parsing unique_together = ('field1', 'field2')

Reported by: RaceCondition <eallik@…> Owned by: andrew
Priority: major Milestone:
Component: commands Version: 0.5
Keywords: Cc: eallik@…


The Django documentation specifies that:

class Meta:
    unique_together = (('field1', 'field2'), )

is equivalent to:

class Meta:
    unique_together = ('field1', 'field2')

but the last one causes South to fail seeing the former as:

class Meta:
    unique_together = (('f', 'i', 'e', 'l', 'd', '1'), ('f', 'i', 'e', 'l', 'd', '2'), )

Change History

comment:1 Changed 6 years ago by RaceCondition <eallik@…>

Priority should have been "minor", but I accidentally pressed "Submit".

comment:2 Changed 6 years ago by RaceCondition <eallik@…>

And "fail seeing the former as" should have been "fail seeing the latter as".

comment:3 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed

I'm marking this fixed - the switch to introspection means it doesn't happen any more.

Note: See TracTickets for help on using tickets.