On 10/16/07, Dmitriy Sodrianov <[EMAIL PROTECTED]> wrote:
> As it can be seen from the code above, i want some tasks to have
> parent, and a parent must be a task too.
The Django documentation covers this.
http://www.djangoproject.com/documentation/model-api/#many-to-one-relationships
http://www
Dmitriy Sodrianov wrote:
> Hi to all!
>
> Can anyone help me, why none of the following code works:
>
> class Task(models.Model):
> parent = models.ForeignKey(Task)
>
>
Try:
class Task(models.Model):
parent = models.ForeignKey('Task')
It will do the lookup lat
Hi to all!
Can anyone help me, why none of the following code works:
class Task(models.Model):
parent = models.ForeignKey(Task)
class Task(models.Model):
parent = models.ForeignKey(self)
As it can be seen from the code above, i want some tasks to have
parent, and a
3 matches
Mail list logo