django foreignkey contains query

前端 未结 1 592
青春惊慌失措
青春惊慌失措 2021-02-04 13:29

I have the following model

class Command(models.Model):
    server = models.ForeignKey(Server)
    user_login = models.CharField(max_length=100)
    user_run = m         


        
相关标签:
1条回答
  • 2021-02-04 14:04
    server__searchfieldname__contains
    

    you didn't specify what field in server table should look up.

    0 讨论(0)
提交回复
热议问题