Ticket #4928: unique_together.diff

File unique_together.diff, 585 bytes (added by MarioGonzalez <gonzalemario @…>, 17 years ago)

It just needed a very little change :-)

  • management.py

     
    11631163
    11641164        # Check unique_together.
    11651165        for ut in opts.unique_together:
     1166            if isinstance(ut, basestring):
     1167                e.add(opts, '"unique_together" refers to %s, they must be tuples not strings in a tuple' % str(opts.unique_together))
     1168                break
    11661169            for field_name in ut:
    11671170                try:
    11681171                    f = opts.get_field(field_name, many_to_many=True)
Back to Top