How to organize a trigram search so that by searching for a relation many-to-many, we get an object that is associated with it in the singular?

前端 未结 0 1493
孤城傲影
孤城傲影 2021-01-22 18:45

I have addresses/models.py:

class Street(models.Model):
    ...
    town = models.ForeignKey(Town, default=None, related_name=\'streets\', on_del         


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