Can I get some little help on Django update()

objs=Topic.objects.annotate(total_post_count=Count(‘post’)).update(total_post=‘total_post_count’)

For some reason above snippet is not work. What I’m trying to do here is update the total_post column with total_post_count , but keep getting total_post is expecting a number . Can someone please elaborate why this is not working. Any help will be greatly appreciated. Thank you very much.

See the docs at Filters can reference fields on the model.