Fix for club tools

This commit is contained in:
2017-09-27 14:42:04 +02:00
parent 4026d076b3
commit 2c1cf2d7af
4 changed files with 20 additions and 7 deletions

View File

@ -26,6 +26,10 @@ from django.db import connection, migrations
class PsqlRunOnly(migrations.RunSQL):
"""
Usefull for migrations with specific postgresql commands
Avoid breaking tests and local dev environnment
"""
def _run_sql(self, schema_editor, sqls):
if connection.vendor == 'postgresql':

View File

@ -26,7 +26,7 @@
<div class="tools">
{% if page %}
{% if page.club %}
<a href="{{ url('club:club_view', club_id=page.club.id) }}">{% trans %}View{% endtrans %}</a>
<a href="{{ url('club:club_view', club_id=page.club.id) }}">{% trans %}Infos{% endtrans %}</a>
{% else %}
<a href="{{ url('core:page', page.get_full_name()) }}">{% trans %}View{% endtrans %}</a>
{% endif %}