Ticket #3851: unique_together_patch.diff
File unique_together_patch.diff, 582 bytes (added by , 18 years ago) |
---|
-
django/db/models/manipulators.py
293 293 # This will be caught by another validator, assuming the field 294 294 # doesn't have blank=True. 295 295 return 296 if field_val is '': 297 kwargs['%s__isnull' % f.name] = True 298 continue 296 299 if isinstance(f.rel, ManyToOneRel): 297 300 kwargs['%s__pk' % f.name] = field_val 298 301 else: