From: Guillaume Pellerin Date: Tue, 4 Jul 2017 21:25:56 +0000 (+0200) Subject: Add scripts X-Git-Tag: 1.1~15^2~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=470c141cdd9ac39c7eb34bf499a258843414d662;p=teleforma.git Add scripts --- diff --git a/teleforma/management/commands/teleforma-change-period-of-content.py b/teleforma/management/commands/teleforma-change-period-of-content.py index b69c7be3..82d3023b 100644 --- a/teleforma/management/commands/teleforma-change-period-of-content.py +++ b/teleforma/management/commands/teleforma-change-period-of-content.py @@ -25,6 +25,7 @@ class Command(BaseCommand): qss.append(Document.objects.filter(period=period_from, date_added__year=year)) qss.append(DocumentSimple.objects.filter(period=period_from, date_added__year=year)) qss.append(Media.objects.filter(period=period_from, date_added__year=year)) + qss.append(Scripts.objects.filter(period=period_from, date_added__year=year)) for qs in qss: for obj in qs: