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':