Intitial teams support #147

Merged
Oleg-Komarov merged 34 commits from teams-support into main 2024-05-23 19:43:54 +02:00
Showing only changes of commit 94b324e4ef - Show all commits

View File

@ -37,7 +37,7 @@ class MaintainedExtensionMixin:
if user_teams: if user_teams:
filter = filter | Q(team__in=[t.pk for t in user_teams]) filter = filter | Q(team__in=[t.pk for t in user_teams])
self.extension = get_object_or_404( self.extension = get_object_or_404(
Extension.objects.filter(filter), Extension.objects.filter(filter).distinct(),
slug=self.kwargs['slug'], slug=self.kwargs['slug'],
) )
return super().dispatch(*args, **kwargs) return super().dispatch(*args, **kwargs)