I'm making use of Django's postgres ArrayField
.
Say I have a model like this:
from django.db import models
from django.contrib.postgres.fields import ArrayField
class Event(models.Model):
name = models.CharField(max_length=200)
dates = ArrayField(models.DateField())
And I want to find the Event
with the latest date. Is there a way to build a queryset that can do that?