mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Add news moderation tool
This commit is contained in:
25
com/migrations/0003_auto_20161223_1548.py
Normal file
25
com/migrations/0003_auto_20161223_1548.py
Normal file
@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('com', '0002_news_newsdate'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='news',
|
||||
old_name='owner',
|
||||
new_name='author',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='news',
|
||||
name='moderator',
|
||||
field=models.ForeignKey(null=True, to=settings.AUTH_USER_MODEL, related_name='moderated_news', verbose_name='moderator'),
|
||||
),
|
||||
]
|
20
com/migrations/0004_auto_20161223_1548.py
Normal file
20
com/migrations/0004_auto_20161223_1548.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('com', '0003_auto_20161223_1548'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='news',
|
||||
name='author',
|
||||
field=models.ForeignKey(to=settings.AUTH_USER_MODEL, related_name='owned_news', verbose_name='author'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user