Carl Karsten wrote: > This works, but there has to be a better way: > > class blastSettings(forms.Form): > users = forms.ModelMultipleChoiceField(queryset=User.objects.all() > > u=x.cleaned_data['users'] > users = User.objects.filter(id__in=[x.id for x in u]).values() > > body_template=Template(message.body) > for user in users: > c=Context(detail) > body = body_template.render(c)
well, this is 'better': users = [x.__dict__ for x in u] and I goofed this line: > c=Context(detail) should be c=Context(users) Carl K --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---