Exemplo n.º 1
0
def anniversary_checkin():
    from nadine.models.core import Member
    for m in Member.objects.active_members():
        d = m.duration()
        if d.years and not d.months and not d.days:
            email.announce_anniversary(m.user)
            email.send_edit_profile(m.user)
Exemplo n.º 2
0
def anniversary_checkin():
    from nadine.models.core import Member
    for m in Member.objects.active_members():
        if m.duration().days % 365 == 0:
            email.announce_anniversary(m.user)
            email.send_edit_profile(m.user)