#29915: Admin search for UUID with dashes works only on Postgres -----------------------------------------+---------------------------- Reporter: washeck | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 2.1 Severity: Normal | Keywords: uuid admin Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+---------------------------- We have Django 2.1 project with model admin which includes an `UUIDField` in `list_display` and `search_fields`. The UUID is displayed with dashes on changelist (e.g. "245ba2eb-6852-47be-82be-7dc07327cf9e") and if the user cut'n'paste it to the search field, I would expect admin to find it.
This works however only on Postgres but fails on Oracle. I can understand why this happens (Oracle backend stores uuid as string) and I believe I can workaround it by customizing `get_search_results` but I think should be internal thing that Django handles gracefully - search should be possible by the value as displayed in admin. -- Ticket URL: <https://code.djangoproject.com/ticket/29915> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.c2022300a12f0182867760ce6bdfb1cf%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.