reign key to your table you need to update the model
definition + the reload method...).
F.
On Jul 31, 2:30 pm, Karen Tracey wrote:
> 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 i
ect).
F.
On Jul 30, 3:26 pm, Karen Tracey wrote:
> 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 ha
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
> ("Sched
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
d_parent
Instead I have to use
id_parent = models.ForeignKey
("Scheduler",db_column='id_parent',to_field='id_schedule')
F.
On 23 juil, 15:02, Fleg wrote:
> Hi,
> I am using Django version 1.0.2 final with Python 2.5.2
> I have a model called Sch
Hi,
I am using Django version 1.0.2 final with Python 2.5.2
I have a model called Scheduler in which I have a colomn (called
"parent_id") which define a recursive relationship.
I defined it like this :
class Scheduler(models.Model):
id_schedule = models.AutoField(primary_key=True)
6 matches
Mail list logo