Proposal: filter by multiple values, case-insensitive

2022-10-29 Thread Jeremy Nauta
Hi all, I'd like to propose a new django filter: *__iin*. As the name implies, this filter finds results that match one of the given values, ignoring case. In other words, this is a hybrid of *__in *and *__iexact*. It surprises me that there are filters for* qs.filter(field__iexact='text')* , *q

Re: Generated Field

2022-12-24 Thread Jeremy Nauta
I'd love to help implement this if we can find a rough syntax! I've made a proof of concept in Postgres, and there are two outstanding limitations to address: - The generated field value is not set until the model is reloaded from the database - The `GENERATED ALWAYS` expression requires an arg

Re: Generated Field

2023-01-01 Thread Jeremy Nauta
I have implemented a first draft for this feature! Feedback and ideas are greatly appreciated. https://github.com/django/django/pull/16417 https://code.djangoproject.com/ticket/34238 On Saturday, December 24, 2022 at 8:56:38 p.m. UTC-7 schinckel wrote: > I believe there are a bunch of similarit

Re: models.CalculatedField feature

2023-01-02 Thread Jeremy Nauta
FYI I have posted a tentative first draft of this feature, feedback is greatly appreciated! https://github.com/django/django/pull/16417 https://code.djangoproject.com/ticket/31300 On Saturday, February 3, 2018 at 5:06:08 p.m. UTC-7 raider...@gmail.com wrote: > Hey, > > So has this stalled? Be