Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10076 closed (fixed)

Wrong Documentation for FileField and unique=True

Reported by: toabctl Owned by: gwilson
Component: Documentation Version: 1.0
Severity: Keywords: FileField, Documentation, Unique
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

For the Option unique, there is the following sentence:

"This options is valid on all field types except ManyToManyField." . See http://docs.djangoproject.com/en/dev/ref/models/fields/#unique

But i can not use the unique-Option with FileFields. See http://code.djangoproject.com/wiki/FileStorageRefactor

So the Documentation is wrong.

Attachments (1)

filefield_unique.txt (550 bytes) - added by timo 6 years ago.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by timo

comment:1 Changed 6 years ago by timo

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to timo
  • Patch needs improvement unset
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Ready for checkin

Confirmed

comment:2 Changed 6 years ago by gwilson

  • Owner changed from timo to gwilson
  • Status changed from assigned to new

comment:3 Changed 6 years ago by gwilson

  • Status changed from new to assigned

comment:4 Changed 6 years ago by gwilson

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [10204]) Fixed #10076 -- Documented invalid arguments for FileField, based on patch from timo.

comment:5 Changed 6 years ago by gwilson

(In [10205]) [1.0.X]: Fixed #10076 -- Documented invalid arguments for FileField, based on patch from timo.

Backport of r10204 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top