mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #27188 -- Allowed using unique=True with FileField.
Thanks Tim Graham for the initial patch.
This commit is contained in:
parent
625cd5bcb3
commit
ec9ed07488
7 changed files with 23 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue