access field of foregin key in django model function

前端 未结 0 1515
野的像风
野的像风 2021-01-07 14:25

Let\'s say I have the following models.py:

from django.db import models

class Person(models.Model):
    name = models.CharField(max_length=100)
         


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