Ticket #4928: unique_together.diff
File unique_together.diff, 585 bytes (added by , 17 years ago) |
---|
-
management.py
1163 1163 1164 1164 # Check unique_together. 1165 1165 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 1166 1169 for field_name in ut: 1167 1170 try: 1168 1171 f = opts.get_field(field_name, many_to_many=True)