Skip to content

Commit

Permalink
fix(stats): fetch check_flags as that is needed
Browse files Browse the repository at this point in the history
It is used while constructing the object to store
old_component_settings.

Fixes WEBLATE-28VW
  • Loading branch information
nijel committed Feb 28, 2025
1 parent 4160fa9 commit 2fb8c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weblate/utils/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ def get_update_objects(self):
yield from self._object.project.stats.get_update_objects()

def get_child_objects(self):
return self._object.component_set.only("id", "category")
return self._object.component_set.only("id", "category", "check_flags")

def get_category_objects(self):
return self._object.category_set.only("id", "category")
Expand All @@ -1258,7 +1258,7 @@ def has_review(self):
return self._object.enable_review

def get_child_objects(self):
return self._object.component_set.only("id", "project")
return self._object.component_set.only("id", "project", "check_flags")

def get_single_language_stats(self, language):
return ProjectLanguageStats(ProjectLanguage(self._object, language))
Expand Down

0 comments on commit 2fb8c9f

Please sign in to comment.