http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-subset-of-fields-on-the-form

Good luck!

-ld

On Aug 21, 3:49 pm, goobee <goo...@hispeed.ch> wrote:
> hi there
>
> I'm in dire need of a good idea. django drives me crazy with its
> foreignkey-resolver.
>
> class person(models.Model):
>     name ...
>     firstname ....
>     ....
>     ....
>
> class participant(models.Model):
>     group ......
>     person(foreignkey(person))
>     funk ...
>
> I want to show 'participant' using the ModelForm-feature. From model
> 'person' I need name and firstname only (or __unicode__) of the
> particular participant, but django delivers the entire table 'person'
> which is an unnecessary overkill (especially with several FKs in
> 'participant'). There must be an option to avoid this behaviour!?
>
> thanks for any ideas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to