mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Add some better right management to forum
This commit is contained in:
22
forum/migrations/0002_auto_20170128_1958.py
Normal file
22
forum/migrations/0002_auto_20170128_1958.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('forum', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='forum',
|
||||
name='owner_group',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='forumtopic',
|
||||
name='title',
|
||||
),
|
||||
]
|
20
forum/migrations/0003_forum_owner_club.py
Normal file
20
forum/migrations/0003_forum_owner_club.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('club', '0006_auto_20161229_0040'),
|
||||
('forum', '0002_auto_20170128_1958'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='forum',
|
||||
name='owner_club',
|
||||
field=models.ForeignKey(related_name='owned_forums', verbose_name='owner club', to='club.Club', default=1),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user