Opened 7 years ago

Last modified 19 months ago

#28992 assigned Bug

Admin search over GenericIPAddressField with badly formatted IP address causes a DataError — at Version 1

Reported by: Vlada Macek Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description (last modified by Vlada Macek)

When I have a GenericIPAddressField of the model in search_fields of a ModelAdmin and then search for example a space, the admin dies with 500 and

DataError: invalid input syntax for type inet: " "

exception is e-mailed.

Change History (1)

comment:1 by Vlada Macek, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top