Commit ebb5867d authored by Mattia Rizzolo's avatar Mattia Rizzolo

warn about becoming DD without being DM only if the applican is a simple DC

I.e., we shouldn't warn if the applicant is one of:
 * dm/dm_ga
 * dd_nu
 * dd_e/dd_r
Given that the reverse set of the above just leaves out dc/dc_ga, just
check for that.

Thanks: urbec for noticying it in a dd_nu → dd_u case.
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <>
parent 12a14a08
Pipeline #88911 passed with stage
in 3 minutes and 45 seconds
......@@ -313,7 +313,9 @@ class ReqAdvocate(RequirementMixin, TemplateView):
ctx = super(ReqAdvocate, self).get_context_data(**kw)
ctx["warn_dm_preferred"] = (
self.process.applying_for == const.STATUS_DD_U and
self.process.person.status not in (const.STATUS_DM, const.STATUS_DM_GA))
self.process.person.status in (
const.STATUS_DC, const.STATUS_DC_GA,
return ctx
Markdown is supported
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