https://stackoverflow.com/questions/10055532/select-field-as-x-with-django-orm
from django.db.models import F Foo.objects.filter(cond=1).annotate(sth_shiny=F('my_field'))
No comments:
Post a Comment