0
私はdjango 1.6で作業しています。シーズンの非アクティブをTrueにすると、すべてActivities
をフィルタリングしたいと思います。djangoの複雑なクエリーセット1.6
これは次のモデルでも可能ですか? クラスProductionはSeasonProductionとSeasonにForeignKeyを持たない。
class Activity(models.Model):
production = models.ForeignKey(Production, null=True, verbose_name='ProductionId')
class SeasonProduction(models.Model):
season = models.ForeignKey(Season, verbose_name='SeasonId')
production = models.ForeignKey(Production, verbose_name='ProductionId')
class Season(models.Model):
name = models.CharField('Name', max_length=255)
inactive = models.BooleanField(default=True)
class Production(models.Model):
prod_info = models.CharField('ProductionInfo', max_length=255,
null=True, blank=True)
title = models.CharField('Title', max_length=255)
:
関連ドキュメントへのリンクを。それは時代遅れでバグです。 –
プロジェクトがdjango 1.6になっています@gitblame – mark
'Production'モデル定義を投稿できますか? –