Can I have a Django model that has a foreign key reference to itself?

后端 未结 3 534
Happy的楠姐
Happy的楠姐 2020-12-05 12:28

Okay, how would I do this?

class Example(models.Model):
  parent_example = models.ForeignKey(Example)

I want to have a model have a foreign

3条回答
提交回复
热议问题