Adds a CaseInsensitiveFilter inside the promo admin, and uses it for assigned_to.
Maybe this should be in some more central directory, so we can reuse it more widely? I don't know if we want this in other places too. The code is also a bit messy, but it seems pretty much all of it is needed and Django offers no easier way, sadly.
I also used in-Python code for managing the lower-casing, since I think doing it directly would require Postgres or something and we don't want to break SQLite.
How to test
Go to promo admin
Assign some requests to different capitalizations of the same name (e.g. one to quinten and the other to Quinten)
Observe that these are merged together in one filter option
Closes #3085.
Summary
Adds a
CaseInsensitiveFilter
inside the promo admin, and uses it forassigned_to
.Maybe this should be in some more central directory, so we can reuse it more widely? I don't know if we want this in other places too. The code is also a bit messy, but it seems pretty much all of it is needed and Django offers no easier way, sadly.
I also used in-Python code for managing the lower-casing, since I think doing it directly would require Postgres or something and we don't want to break SQLite.
How to test
quinten
and the other toQuinten
)