diff --git a/support/dev/settings.py b/support/dev/settings.py index f3721b24..8daef901 100644 --- a/support/dev/settings.py +++ b/support/dev/settings.py @@ -373,7 +373,7 @@ INSTALLED_APPS = ( ) CRONJOBS = [ - # ('8 * * * *', 'django.core.management.call_command', ['send_newsletter']), + ('8 * * * *', 'django.core.management.call_command', ['send_newsletter']), ('0 * * * *', 'django.core.management.call_command', ['update_index', 'conference', '--remove', '--age=6']), ('5 * * * *', 'django.core.management.call_command', ['update_index', 'exposition', '--remove', '--age=6']), diff --git a/templates/admin/newsletters/contact_list.html b/templates/admin/newsletters/contact_list.html index ebe06290..8f72d671 100644 --- a/templates/admin/newsletters/contact_list.html +++ b/templates/admin/newsletters/contact_list.html @@ -157,7 +157,11 @@ {{ item.creation_date|date:"Y-m-d H:i" }} {{ item.modification_date|date:"Y-m-d H:i" }} - Изменить + + {% if item.contactsettings %} + Изменить + {% endif %} + Удалить @@ -222,4 +226,4 @@ }) -{% endblock %} \ No newline at end of file +{% endblock %}