0

I have a situation where I am annotating some values and I do not want those to be the output.

qs = A.objects.annotate(data=Cast('amount', FloatField()))

I want to remove data before the serialization in my Django projects

Note - This is specifically in Django 2.2, Django 3.2 has the option to handle this.

Django: delete auxiliary annotation from queryset

Iceman
  • 157
  • 1
  • 9

0 Answers0