summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorHonza Král <honza.kral@gmail.com>2009-06-02 00:37:23 +0000
committerHonza Král <honza.kral@gmail.com>2009-06-02 00:37:23 +0000
commitea52757c1032da39fab6c11cd2b4481f37e9eeff (patch)
treee31ebcc4fe8b2151639b96418f2cee19002162be /django
parentd484d021f20ebb079b20e85b6e249317452263fb (diff)
[soc2009/model-validation] Tests for Model._get_unique_checks
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@10883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/db/models/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index 7de0124586..5abdd59483 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -621,7 +621,7 @@ class Model(object):
def _get_unique_checks(self):
from django.db.models.fields import FieldDoesNotExist, Field as ModelField
- unique_checks = self._meta.unique_together[:]
+ unique_checks = list(self._meta.unique_together)
# these are checks for the unique_for_<date/year/month>
date_checks = []