Take a peek at the Django forms documentation, specifically the ModelChoiceField and ModelMultipleChoiceField, the docs are at: http://docs.djangoproject.com/en/dev/ref/forms/fields/
These fields allow you to specify a queryset to populate your form select fields, this queryset can be the list of articles for the logged in user. Cheers, Dan On Jul 25, 3:56 pm, Asinox <asi...@gmail.com> wrote: > Hi guys, i have a problem with ModelForm, the problem is that in the > user private area there is a Form (ModelForm), but in this Form i have > a Select, this select show the parent articles , so the problem is > that the Select show all parent articles, from all users.... > > How ill just show the parent articles of the logged user? bcz the > Select in the Model is a ForeignKey from another table. > > There's a method that ill write in the Model or in the ModelForm? > > sorry with my english --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---