mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-12 13:46:05 +00:00
Prevent generation of useless migrations upon settings change
This commit is contained in:
1 parent
01240ce75e
commit
9146251642
6 files changed
+77
-6
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import forum.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('forum', '0005_forumtopic_subscribed_users'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='forum',
|
||||
name='edit_groups',
|
||||
field=models.ManyToManyField(blank=True, default=forum.models.Forum.get_default_edit_group, related_name='editable_forums', to='core.Group'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='forum',
|
||||
name='view_groups',
|
||||
field=models.ManyToManyField(blank=True, default=forum.models.Forum.get_default_view_group, related_name='viewable_forums', to='core.Group'),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user