Opened 7 years ago

Last modified 21 months ago

#28992 assigned Bug

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

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

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 (0)

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