Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e5bb84ab4 | |||
| 4c372c1a04 |
@@ -53,6 +53,7 @@ class HomeView(LoginRequiredMixin, View):
|
|||||||
# Repeat for other objects
|
# Repeat for other objects
|
||||||
comps = Compensation.objects.filter(
|
comps = Compensation.objects.filter(
|
||||||
deleted=None,
|
deleted=None,
|
||||||
|
intervention__deleted=None,
|
||||||
)
|
)
|
||||||
user_comps = comps.filter(
|
user_comps = comps.filter(
|
||||||
Q(intervention__users__in=[user]) | Q(intervention__teams__in=user_teams)
|
Q(intervention__users__in=[user]) | Q(intervention__teams__in=user_teams)
|
||||||
|
|||||||
Reference in New Issue
Block a user