On 8/3/06, cyberco <[EMAIL PROTECTED]> wrote:
>
> I want to enable users to fill out two forms (textareas) on one page,
> where each form creates a new instance of a model/class. I have the 2
> following models:
>
> ========================
> class A(models.Model):
>     text = models.TextField()
>
> class B(models.Model):
>     a = models.ForeignKey(A)
>     text = models.TextField()
>
> ========================
>
> The problem is that B can't be created before the id of A is known. How
> is this normally done?
>
>
You should create A first, then create B.

-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to