Opened 19 years ago
Closed 17 years ago
#1702 closed defect (wontfix)
UniqueAmongstFieldsWithPrefix validator does not work as advertised
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In django/core/validators.py, the UniqueAmongstFieldsWithPrefix validator class takes a field_name and a prefix as parameters. However, the validation method itself (in the __call__
function) does not refer to self.prefix and instead seems to be checking that the field being validated is not equal to any field except possibly that given in field_name.
The implementation appears to be doing nothing like what the name says. It is acting more like a hypothetical DifferentFromAllFieldsExcept validator.
Change History (2)
comment:1 by , 18 years ago
Summary: | [magic-removal] UniqueAmongstFieldsWithPrefix validator does not work as advertised → UniqueAmongstFieldsWithPrefix validator does not work as advertised |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The old-style validators are deprecated and going away.