mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Fixed #12647. Allow unique_together checks be specified as lists as well as tuples. Thanks, Honza Král.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8f4540b2e6
commit
225c413b08
3 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ class UniqueTogetherModel(models.Model):
|
|||
efield = models.EmailField()
|
||||
|
||||
class Meta:
|
||||
unique_together = (('ifield', 'cfield',), ('ifield', 'efield'))
|
||||
unique_together = (('ifield', 'cfield',), ['ifield', 'efield'])
|
||||
|
||||
class UniqueForDateModel(models.Model):
|
||||
start_date = models.DateField()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue