Fixed #27188 -- Allowed using unique=True with FileField.

Thanks Tim Graham for the initial patch.
This commit is contained in:
Michael Scott 2016-09-20 22:31:23 +01:00 committed by Tim Graham
parent 625cd5bcb3
commit ec9ed07488
7 changed files with 23 additions and 34 deletions

View file

@ -216,7 +216,7 @@ class DataModel(models.Model):
class Document(models.Model):
myfile = models.FileField(upload_to='unused')
myfile = models.FileField(upload_to='unused', unique=True)
###############################################################################
# ImageField