Re: Help about saving two linked instances...

2007-02-19 Thread Giuseppe Franchi
Thanks a lot to both of you! As u are so nice i have another question about it :) class Resource_systeminfo(models.Model): ... owner = models.ForeignKey(User) You see, i have a foreign key to a user object. But in my view, when i try to do ResSysForm = form_for_model(

Re: Help about saving two linked instances...

2007-02-17 Thread Honza Král
Hi Giuseppe, On 2/17/07, Giuseppe Franchi <[EMAIL PROTECTED]> wrote: > > Hello everyone! > I've approached Django and Python from a few time and i love them > both. > As i am newbie i have a noobish question. My problem is: i have to > store a Resource object splitted in two tables as following: >

Re: Help about saving two linked instances...

2007-02-17 Thread Pythoni
I think you need some relations. You can have a look at http://www.djangoproject.com/documentation/models/ and choose the best model for your problem L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Help about saving two linked instances...

2007-02-17 Thread Giuseppe Franchi
Hello everyone! I've approached Django and Python from a few time and i love them both. As i am newbie i have a noobish question. My problem is: i have to store a Resource object splitted in two tables as following: class Resource(models.Model): title = models.CharField(maxlength=100)