fix for test contacts listview

remotes/origin/stage5
Alexander Burdeiny 10 years ago
parent 00fb495492
commit bbdc4b6965
  1. 2
      support/dev/settings.py
  2. 6
      templates/admin/newsletters/contact_list.html

@ -373,7 +373,7 @@ INSTALLED_APPS = (
) )
CRONJOBS = [ 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']), ('0 * * * *', 'django.core.management.call_command', ['update_index', 'conference', '--remove', '--age=6']),
('5 * * * *', 'django.core.management.call_command', ['update_index', 'exposition', '--remove', '--age=6']), ('5 * * * *', 'django.core.management.call_command', ['update_index', 'exposition', '--remove', '--age=6']),

@ -157,7 +157,11 @@
<td>{{ item.creation_date|date:"Y-m-d H:i" }}</td> <td>{{ item.creation_date|date:"Y-m-d H:i" }}</td>
<td>{{ item.modification_date|date:"Y-m-d H:i" }}</td> <td>{{ item.modification_date|date:"Y-m-d H:i" }}</td>
<td><a href="{% url 'newsletters_contact_update' item.contactsettings.id %}">Изменить</a></td> <td>
{% if item.contactsettings %}
<a href="{% url 'newsletters_contact_update' item.contactsettings.id %}">Изменить</a>
{% endif %}
</td>
<td><a href="{% url 'newsletters_contact_delete' item.id %}">Удалить</a></td> <td><a href="{% url 'newsletters_contact_delete' item.id %}">Удалить</a></td>
</tr> </tr>

Loading…
Cancel
Save