True – unfortunately, these are optional fields: I'd like the email to contain them when the user provides them upon registration, but I'd still like the email sent if the user omits them. And I don't want the email sent if the user is simply editing their profile. Would I be better off customizing the accounts app?
On 1 February 2017 at 00:27, Stephen McDonald <[email protected]> wrote: > > On Wed, Feb 1, 2017 at 8:46 AM, Christian Hill <[email protected]> wrote: > >> Presumably UserProfile is saved twice and I'm only picking up the first >> time, after it's been attached to a user but before the extra data is >> attached to it. > > > If that's true, then the signal handler would run each time, which means > you could then modify it to check for the expected data (affiliation) and > only send the email then. > > > -- > Stephen McDonald > http://jupo.org > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- My book, Learning Scientific Programming with Python is published by CUP <http://www.cambridge.org/gb/academic/subjects/physics/computational-science-and-modelling/learning-scientific-programming-python?format=PB> scipython.com: | @scipython3 <https://twitter.com/scipython3> -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
