django-mail-factory
django-mail-factory copied to clipboard
Check for mandatory context before calling get_context_data
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...
@bhrutledge You are probably correct, do you mind working on a PR to fix that? I will be happy to review it and help.
Will do!