Modify

Ticket #200 (closed defect: fixed)

Opened 5 years ago

Last modified 5 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@…

Description

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'), )

Attachments

Change History

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

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

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

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

comment:3 Changed 5 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.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.