On Wednesday 01 February 2017 07:02:30 Christian Hill wrote:
> 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?
Add two fields to your profile:
* profile_created: DateTimeField(auto_now_add=True)
* profile_updated: DateTimeField(auto_now=True)
If they're equal, you send mail.
>
> 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.
--
Melvyn Sopacua
--
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.