Django ORM: caching and manipulating ForeignKey objects

后端 未结 2 1874
鱼传尺愫
鱼传尺愫 2021-02-06 08:13

Consider the following skeleton of a models.py for a space conquest game:

class Fleet(models.Model):
    game = models.ForeignKey(Game, related_name=\'planet_set         


        
2条回答
  •  隐瞒了意图╮
    2021-02-06 08:48

    This is perhaps what you are looking for:

    https://web.archive.org/web/20121126091406/http://simonwillison.net/2009/May/7/mmalones/

提交回复
热议问题