In BaseMail.__init__, I think it would be helpful to validate context against self.get_params (and raise MissingMailContextParamException) before doing anything else. That way, self.get_context_data could safely reference the required params while adding additional context.
But, maybe there's some element of the flow that I'm missing...
In
BaseMail.__init__
, I think it would be helpful to validatecontext
againstself.get_params
(and raiseMissingMailContextParamException
) before doing anything else. That way,self.get_context_data
could safely reference the required params while adding additional context.But, maybe there's some element of the flow that I'm missing...