We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9df4d6 commit d75afa7Copy full SHA for d75afa7
core/common/models.py
@@ -1161,6 +1161,9 @@ def concept_names_distribution(self):
1161
def get_name_locale_distribution(self):
1162
return self._get_distribution(self.get_name_locales_queryset(), 'locale')
1163
1164
+ def get_name_locale_list_distribution(self):
1165
+ return self.get_concepts_queryset().distinct('names__locale').values_list('names__locale', flat=True)
1166
+
1167
def get_name_type_distribution(self):
1168
return self._get_distribution(self.get_name_locales_queryset(), 'type')
1169
0 commit comments