Skip to content

ClusterTable not showing the correct associated VM count #5890

Answered by jeremystretch
kuzmik asked this question in Q&A
Discussion options

You must be logged in to vote

The table is looking for a field named vm_count in the data to populate the column. You can add this using .annotate(vm_count=Count('virtual_machines', distinct=True)) on the queryset.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kuzmik
Comment options

Answer selected by kuzmik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants