Reformat using black
This commit is contained in:
parent
efee4ad081
commit
a87fb49918
221 changed files with 19127 additions and 7310 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue