I am using Django 1.6 and i need to group some results from a queryset like this:
model
.all()
.values('enum1', 'enum2')
.annotate(
value__min=Min('value'),
value__max=Max('value')
)
now on iteration i need to get the value of get_enum1_display()
but values()
returns a dict object, so that the method does not exist anymore. Is there a workaround?