python- Why does using a variable not yet defined in “string” manner solves the NameError?

后端 未结 0 777
[愿得一人]
[愿得一人] 2020-12-22 23:19

I\'m doing some Django project.

 class Post(models.Model):
     tag_set = models.ManyToManyField(Tag)
 
 class Tag(models.Model):
     pass 

相关标签:
回答
  • 消灭零回复
提交回复
热议问题