On 30 Gen, 19:38, "chasfs" <[EMAIL PROTECTED]> wrote:
> If you don't want the foreign key (or another field) to be displayed
> in the form you can define a formfield_callback:
This in not really the point. I *do* want Foreignkeys to appear.
Suppose the foreign key is a project. I want a select widgets with
projects /but/ I don't want all the possible projects, just some (eg.
project the user belongs to).
I think a possibility is to use formfield_callback that returns
ChoiceField with a correct QuerySet as choices, I was just wondering
whether there was a simpler way.
sandro
*;-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---