diff options
| author | Michael Scott <michael.scott250@gmail.com> | 2016-09-20 22:31:23 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-28 20:11:03 -0400 |
| commit | ec9ed07488aa46fa9d9fd70ed99e82fdf184632a (patch) | |
| tree | c080eab116a5788deb0cdb93b82739f7ddf92d0c /tests/model_fields/models.py | |
| parent | 625cd5bcb315154ed28061fefaf639aff54da7c2 (diff) | |
Fixed #27188 -- Allowed using unique=True with FileField.
Thanks Tim Graham for the initial patch.
Diffstat (limited to 'tests/model_fields/models.py')
| -rw-r--r-- | tests/model_fields/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
