django foreign key other field 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')