mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Forgoten migration from skia and fixed migration
This commit is contained in:
@ -20,7 +20,7 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0024_auto_20170906_1317'),
|
||||
('club', '0009_auto_20170822_2232'),
|
||||
('club', '0010_club_logo'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
@ -34,6 +34,11 @@ class Migration(migrations.Migration):
|
||||
name='page',
|
||||
field=models.OneToOneField(related_name='club', blank=True, null=True, to='core.Page'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='club',
|
||||
name='short_description',
|
||||
field=models.CharField(verbose_name='short description', max_length=1000, default='', blank=True, null=True),
|
||||
),
|
||||
PsqlRunOnly('SET CONSTRAINTS ALL IMMEDIATE', reverse_sql=migrations.RunSQL.noop),
|
||||
migrations.RunPython(generate_club_pages),
|
||||
PsqlRunOnly(migrations.RunSQL.noop, reverse_sql='SET CONSTRAINTS ALL IMMEDIATE'),
|
||||
|
Reference in New Issue
Block a user