Hello,

it's my frist time I'm using this Group.

My Problems:
I have a class A and a class B with a one(A)-to-many(B) relationship
between them.

My first question: Is there an efficient way to get in a template all
instances of B, which are related to an instance of A, when i only
knew an instance of A? Something like a special attribute, or
something like that?

My second question: I want to use form_for_model(), because of my
database-driver design. But how can I add an instance of B so that the
relation to an instance of A is also saved, without specify the
foreign key id of A explicitly?

I hope you understand what I meen.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to