django foreign key to same code example
Example: django foreign key to same
class Task(models.Model):
title = models.CharField()
relates_to = models.ForeignKey('self')
class Task(models.Model):
title = models.CharField()
relates_to = models.ForeignKey('self')