Ok. Is it working now
On Thu, 5 Dec, 2024, 8:10 pm mccc, wrote:
> Turns out there was a tiny class Meta at the very bottom of the very big
> model, obfuscating mine defining the index.. Something not even ChatGPT
> could imagine!
>
> On Thursday, December 5, 2024 at 12:31:01 PM UTC+1 RANGA BHARA
Turns out there was a tiny class Meta at the very bottom of the very big
model, obfuscating mine defining the index.. Something not even ChatGPT
could imagine!
On Thursday, December 5, 2024 at 12:31:01 PM UTC+1 RANGA BHARATH JINKA
wrote:
> Hi,
>
> The issue is that partial indexes with conditi
Hi,
The issue is that partial indexes with conditions (condition attribute in
models.Index) were introduced in *Django 3.2*, but they rely on the
database backend's ability to support them. PostgreSQL does support partial
indexes, so that part should be fine. However, your problem likely stems
fro
Hello,
We want to have a partial index (db backend is Postgres) on a
datetimefield, so we added this code to the Meta class:
class Episode(models.Model):
channel_type = models.CharField(max_length=16, choices=CHANNEL_TYPES)
last_seen_date = models.DateTimeField(auto_now_add=True)
cla
4 matches
Mail list logo