fix sounds_monitor; fix django compatibility (v3.2)

This commit is contained in:
bkfox
2022-01-09 15:14:00 +01:00
parent c08e93d91f
commit 9efe19e052
7 changed files with 27 additions and 22 deletions

View File

@ -169,14 +169,14 @@ class BaseRerun(models.Model):
datetime field or attribute implemented by subclass.
"""
program = models.ForeignKey(
Program, models.CASCADE,
Program, models.CASCADE, db_index=True,
verbose_name=_('related program'),
)
initial = models.ForeignKey(
'self', models.SET_NULL, related_name='rerun_set',
verbose_name=_('rerun of'),
limit_choices_to={'initial__isnull': True},
blank=True, null=True,
blank=True, null=True, db_index=True,
)
objects = BaseRerunQuerySet.as_manager()