mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 01:51:08 -05:00
here we go
This commit is contained in:
107
moderation/migrations/0003_rename_fields_and_update_status.py
Normal file
107
moderation/migrations/0003_rename_fields_and_update_status.py
Normal file
@@ -0,0 +1,107 @@
|
||||
# Generated manually
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('moderation', '0002_editsubmission_submission_type_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
# EditSubmission changes
|
||||
migrations.RenameField(
|
||||
model_name='editsubmission',
|
||||
old_name='submitted_at',
|
||||
new_name='created_at',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='editsubmission',
|
||||
old_name='reviewed_by',
|
||||
new_name='handled_by',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='editsubmission',
|
||||
old_name='reviewed_at',
|
||||
new_name='handled_at',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='editsubmission',
|
||||
old_name='review_notes',
|
||||
new_name='notes',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='editsubmission',
|
||||
name='status',
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
('NEW', 'New'),
|
||||
('APPROVED', 'Approved'),
|
||||
('REJECTED', 'Rejected'),
|
||||
('ESCALATED', 'Escalated'),
|
||||
],
|
||||
default='NEW',
|
||||
max_length=20,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='editsubmission',
|
||||
name='handled_by',
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
related_name='handled_submissions',
|
||||
to='accounts.user',
|
||||
),
|
||||
),
|
||||
|
||||
# PhotoSubmission changes
|
||||
migrations.RenameField(
|
||||
model_name='photosubmission',
|
||||
old_name='submitted_at',
|
||||
new_name='created_at',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='photosubmission',
|
||||
old_name='reviewed_by',
|
||||
new_name='handled_by',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='photosubmission',
|
||||
old_name='reviewed_at',
|
||||
new_name='handled_at',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='photosubmission',
|
||||
old_name='review_notes',
|
||||
new_name='notes',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='photosubmission',
|
||||
name='status',
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
('NEW', 'New'),
|
||||
('APPROVED', 'Approved'),
|
||||
('REJECTED', 'Rejected'),
|
||||
('AUTO_APPROVED', 'Auto Approved'),
|
||||
],
|
||||
default='NEW',
|
||||
max_length=20,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='photosubmission',
|
||||
name='handled_by',
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
related_name='handled_photos',
|
||||
to='accounts.user',
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user