Opened 9 years ago

Closed 7 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


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

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

Likewise, nullable datefields generate a 'None' choice:

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 Changed 8 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Matt McClanahan

Severity: Normal
Type: Bug

comment:3 Changed 7 years ago by Preston Holmes

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