Reformat using black

This commit is contained in:
cuom1999 2022-05-14 12:57:27 -05:00
parent efee4ad081
commit a87fb49918
221 changed files with 19127 additions and 7310 deletions

View file

@ -12,6 +12,10 @@ def own_ticket_filter(profile_id):
def filter_visible_tickets(queryset, user, profile=None):
if profile is None:
profile = user.profile
return queryset.filter(own_ticket_filter(profile.id) |
Q(content_type=ContentType.objects.get_for_model(Problem),
object_id__in=editable_problems(user, profile))).distinct()
return queryset.filter(
own_ticket_filter(profile.id)
| Q(
content_type=ContentType.objects.get_for_model(Problem),
object_id__in=editable_problems(user, profile),
)
).distinct()