Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/t/i/timebank-HEAD/user/views.py   timebank(Download)
 
        form.fields["user_status"].label=_("User connected")
        people = Profile.objects.filter(is_active=True)
 
        try:
        mass_email = EmailMessage(form.cleaned_data["subject"], form.cleaned_data["message"],
            from_email=settings.DEFAULT_FROM_EMAIL, to=[],
            bcc=[user.email for user in Profile.objects.filter(is_active=True)])
        mass_email.send()
        self.flash(_("Email sent to all users"))

src/t/i/timebank-HEAD/user/admin.py   timebank(Download)
            return
 
        old_model = Profile.objects.filter(id=model.id)[0]
        if model.is_active == True and old_model.is_active == False:
            # user activated, send activation email