django foreign key self

Posted Almost 6 years ago. Visible to the public. Draft.

Example

class CategoryModel(models.Model):
    parentId = models.ForeignKey('self')

References

Cuauhtemoc
Last edit
Almost 6 years ago
Cuauhtemoc
Posted by Cuauhtemoc to Python Django (2018-07-22 17:25)