Opened 14 years ago

Closed 14 years ago

#14741 closed (fixed)

CZ Localflavor clean() incorrectly calls parent __init__

Reported by: Idan Gazit Owned by: nobody
Component: contrib.localflavor Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In cz/forms.py, see L54 and L111. At the beginning of clean(), the parent's __init__ is called instead of clean().

Patch attached. Discovered while converting doctests to unittests.

Attachments (1)

cz_localflavor_clean.diff (741 bytes ) - added by Idan Gazit 14 years ago.

Download all attachments as: .zip

Change History (2)

by Idan Gazit, 14 years ago

Attachment: cz_localflavor_clean.diff added

comment:1 by Honza Král, 14 years ago

Resolution: fixed
Status: newclosed

(In [14660]) Fixed #14741 -- CZ Localflavor clean() incorrectly called super.init. Thanks for the report and patch idangazit!

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