mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Fix for club tools
This commit is contained in:
@ -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':
|
||||
|
@ -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 %}
|
||||
|
Reference in New Issue
Block a user