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 parent must be a task too.
But the only thing validation says is:
versatility.tasks: name 'Task' is not defined
or
versatility.tasks: name 'self' is not defined
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---