Ticket #12132: patch.diff
File patch.diff, 588 bytes (added by , 15 years ago) |
---|
-
django/db/models/base.py
641 641 # the list of checks. Again, skip empty fields and any that did not validate. 642 642 for f in self._meta.fields: 643 643 name = f.name 644 if f.unique :644 if f.unique and not f.primary_key: 645 645 unique_checks.append((name,)) 646 646 if f.unique_for_date: 647 647 date_checks.append(('date', name, f.unique_for_date))