Opened 14 years ago

Closed 13 years ago

#12188 closed Bug (wontfix)

Nullable numeric and date fields cause ValueError and ValidationError respectively in databrowse

Reported by: Skylar Saveland Owned by: nobody
Component: contrib.databrowse Version: 1.1
Severity: Normal Keywords: databrowse null ValueError ValidationError
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have gender as a SmallPositiveIntegerField. Databrowse then allows "None" as a choice to filter by you can see here:

http://boss.oswco.net/databrowse/teller/employee/fields/gender/

ValueError: invalid literal for int() with base 10: 'None'

Likewise, nullable datefields generate a 'None' choice:

http://boss.oswco.net/databrowse/teller/employee/fields/birth_date/

Which results in an error:
ValidationError: Enter a valid date in YYYY-MM-DD format.

Maybe there is an easy convention or workaround for dealing with these cases. Sorry if this has already been reported.

Change History (3)

comment:1 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Matt McClanahan, 13 years ago

Severity: Normal
Type: Bug

comment:3 by Preston Holmes, 13 years ago

Easy pickings: unset
Resolution: wontfix
Status: newclosed
UI/UX: unset

Databrowse is now deprecated, see #16907

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