I have a model Song which has a FormSet associated with it using a ModelForm.

The Song model has two ForeignKeys (Artist and Album) but I want to limit the options shown in the FormSet to only Artists and Albums made by the currently logged in user. I know to make the QuerySets themselves but I don't know how to associate the two QuerySets with the FormSet.

I know you can specify one QuerySet by editing the ModelForm instance but I don't see how I would get the current logged in user when doing this and as I said this only lets you specify one QuerySet rather than the two I require as far as I understand it.

Any help is appreciated.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/54AFFF5B.2030303%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to