mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Rename news moderate to publish
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [("com", "0008_alter_news_options_alter_newsdate_options_and_more")]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name="news", old_name="is_moderated", new_name="is_published"
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="news",
|
||||
name="is_published",
|
||||
field=models.BooleanField(default=False, verbose_name="is published"),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user