Re: How can I reload attributes from the database

2009-07-31 Thread Karen Tracey
On Fri, Jul 31, 2009 at 8:53 AM, Fleg wrote: > > Yes, I saw this case and that's what I need... > The point is that the proposed fix implies to patch the django core > which I would prefer to avoid. > The other solution need to add as many lines of code as you have > associated objects (and for a

Re: How can I reload attributes from the database

2009-07-31 Thread Fleg
Yes, I saw this case and that's what I need... The point is that the proposed fix implies to patch the django core which I would prefer to avoid. The other solution need to add as many lines of code as you have associated objects (and for all objects)... which is quite heavy (if you add a foreign

Re: How can I reload attributes from the database

2009-07-31 Thread Karen Tracey
On Fri, Jul 31, 2009 at 5:51 AM, Fleg wrote: > > Thanks for your suggestion, but I cannot... I need to do that from a > method of the model itself. > Basically, I need to use some stored procedures to modify datas in the > database (and these stored procs can also modify some other tables), > thu

Re: How can I reload attributes from the database

2009-07-31 Thread Fleg
Thanks for your suggestion, but I cannot... I need to do that from a method of the model itself. Basically, I need to use some stored procedures to modify datas in the database (and these stored procs can also modify some other tables), thus I need to reload after calling these procedures in order

Re: How can I reload attributes from the database

2009-07-30 Thread Karen Tracey
On Thu, Jul 30, 2009 at 9:10 AM, Fleg wrote: > > Nobody knows ? > Simply re-get the instance from the DB? Karen > > On Jul 29, 6:12 pm, Fleg wrote: > > Hi, > > I have a model mapping tables in a database with several foreign keys. > > > > class Scheduler(models.Model): > > id_schedu

Re: How can I reload attributes from the database

2009-07-30 Thread Fleg
Nobody knows ? On Jul 29, 6:12 pm, Fleg wrote: > Hi, > I have a model mapping tables in a database with several foreign keys. > > class Scheduler(models.Model): >         id_schedule = models.AutoField(primary_key=True) >         id_parent = models.ForeignKey > ("Scheduler",db_column='id_parent'

How can I reload attributes from the database

2009-07-29 Thread Fleg
Hi, I have a model mapping tables in a database with several foreign keys. class Scheduler(models.Model): id_schedule = models.AutoField(primary_key=True) id_parent = models.ForeignKey ("Scheduler",db_column='id_parent',to_field='id_schedule') id_object_type = models.Forei