Unverified Commit 2809c54f authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue 🚼
Browse files

[process/views] FD Approved and Approved lists are exclusive of the other

Fixes salsa issue 46 (not putting the hashtag otherwise I fear the BTS
will explode)
parent fb1e96ee
Pipeline #326558 passed with stage
in 5 minutes and 53 seconds
......@@ -111,8 +111,9 @@ class AMDashboard(VisitorMixin, TemplateView):
for p in pmodels.Process.objects.filter(closed_time__isnull=True).order_by("applying_for"):
# Shows in fd_approved_processes even hidden processes, so DAM can't miss these
if p.applying_for in ['dd_nu', 'dd_u']:
if p.approved and p.approved_by.am_or_none and not p.approved_by.am.is_dam:
if p.approved and p.approved_by.am_or_none and not p.approved_by.am.is_dam and not process.rt_ticket:
fd_approved_processes.append(p)
continue
if not self._show_process(p):
continue
if p.approved:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment