Hello All,

I am writing an app that includes Messaging and I would like to give
users the ability to attach other system objects to the messages that
they send. The FormWizard stuff is fabulous, but I would like to limit
a queryset used in one of the forms here are my Mail forms:

class MailFormP1(forms.Form):
    subject = forms.CharField(max_length=100)
    recipient = forms.ModelChoiceField(queryset=User.objects.all())
    body = forms.CharField(widget=forms.Textarea)
    draft = forms.BooleanField()

class MailFormP2(forms.Form):
    attachments =
forms.ModelMultipleChoiceField(queryset=Submission.objects.all())

how can I make the queryset use Submission.objects.filter rather than
objects.all ?

Any suggestions?

thanks,

mjj


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to