From ec9ed07488aa46fa9d9fd70ed99e82fdf184632a Mon Sep 17 00:00:00 2001 From: Michael Scott Date: Tue, 20 Sep 2016 22:31:23 +0100 Subject: Fixed #27188 -- Allowed using unique=True with FileField. Thanks Tim Graham for the initial patch. --- tests/model_fields/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/model_fields/models.py') diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index aeeb6e88da..faa7d08189 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -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 -- cgit v1.3