Opened 16 years ago
Closed 15 years ago
#12062 closed Bug (duplicate)
django.contrib.localflavor.cl.CLRutField isn't doing proper validation
| Reported by: | aotarola | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.localflavor | Version: | |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | yes | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
django.contrib.localflavor.cl.CLRutField ignores validation for lowercase values.
A valid chilean rut ( chilean national identification number) is for example: 76796630-K (case for "K" must be uppercase), but not all people are aware of this,
and they keep using the lowercase version, so they spend a lot of time in online forms figuring this out.
The lowercase problem must be handled every time a form has a CLRutfield.
I believe this issue must be handled by CLRutfield's validation.
The attached patch solves this problem.
Attachments (1)
Change History (5)
by , 16 years ago
| Attachment: | enhanced_chilean_rut_validation.diff added |
|---|
comment:1 by , 16 years ago
| Triage Stage: | Unreviewed → Design decision needed |
|---|
comment:2 by , 16 years ago
| milestone: | 1.2 |
|---|---|
| Version: | 1.1 |
comment:3 by , 15 years ago
| Easy pickings: | unset |
|---|---|
| Needs tests: | set |
| Severity: | → Normal |
| Type: | → Bug |
comment:4 by , 15 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Fixed in changeset:15450 (ticket:15175)