What I'm trying to do is annotate a queryset with the weekday strings ("monday", "tuesday" etc).
I understand how to get the int values:
queryset = queryset.annotate(
weekday_int=ExtractWeekDay("date"),
)
But I'm having trouble getting the string values themselves. I've tried using an ExpressionWrapper, but F objects don't seem to play well with Date objects.
I'm using postgres as my underlying database but can't find a related lookup_name for the generic Extract.