From: Guillaume Pellerin Date: Fri, 20 Dec 2013 16:53:15 +0000 (+0100) Subject: copied seminar non published X-Git-Tag: 2.8.1-pro~394 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ace9807a1231faccfc083466563c53afda0d4c7b;p=teleforma.git copied seminar non published --- diff --git a/teleforma/admin.py b/teleforma/admin.py index 4e8950c2..ee826780 100644 --- a/teleforma/admin.py +++ b/teleforma/admin.py @@ -81,7 +81,7 @@ class SeminarAdmin(admin.ModelAdmin): 'docs_1', 'docs_2', 'docs_correct'] ordering = ['course', 'rank'] search_fields = ['course__title', 'title', 'sub_title'] - list_filter = ('publish_date', 'expiry_date') + list_filter = ('period', 'publish_date', 'expiry_date') class Media: css = { 'all': ('admin/extra.css',) } diff --git a/teleforma/management/commands/teleforma-copy-seminars.py b/teleforma/management/commands/teleforma-copy-seminars.py index adb8e8ab..27bb47ca 100644 --- a/teleforma/management/commands/teleforma-copy-seminars.py +++ b/teleforma/management/commands/teleforma-copy-seminars.py @@ -36,6 +36,7 @@ class Command(BaseCommand): clone.publish_date = seminar.publish_date.replace(year=to_year) clone.expiry_date = seminar.expiry_date.replace(year=to_year) clone.period = to_period + clone.status = 1 clone.save() print ('seminar dates updated', clone)