Skip to content

Commit

Permalink
Show latest activity for project-locale, not project, in /[locale]/ (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli authored Feb 25, 2025
1 parent b68ab68 commit 027ee2f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pontoon/teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ def ajax_projects(request, locale):
latest_activities = {
trans.project_id: trans.latest_activity
for trans in Translation.objects.filter(
id__in=(project.latest_translation_id for project in enabled_projects)
id__in=(
ProjectLocale.objects.filter(
locale=locale, project__in=enabled_projects
)
.order_by()
.values_list("latest_translation_id", flat=True)
),
)
.select_related("user", "approved_user")
.annotate(project_id=F("entity__resource__project__id"))
Expand Down

0 comments on commit 027ee2f

Please sign in to comment.