mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-26 13:30:13 +00:00
b3a519c082
This table will now track all actions taken on a report, like resolving it, re-opening it, suspending the reported user, et cetera, in addition to comments. When there are multiple admins, this change will make it easier to understand what actions have been taken by whom on a report.
36 lines
1.2 KiB
Python
36 lines
1.2 KiB
Python
# Generated by Django 3.2.18 on 2023-05-16 16:02
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("bookwyrm", "0178_auto_20230328_2132"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="reportcomment",
|
|
name="action_type",
|
|
field=models.CharField(
|
|
choices=[
|
|
("comment", "Comment"),
|
|
("resolve", "Resolved report"),
|
|
("reopen", "Re-opened report"),
|
|
("message_reporter", "Messaged reporter"),
|
|
("message_offender", "Messaged reported user"),
|
|
("user_suspension", "Suspended user"),
|
|
("user_unsuspension", "Un-suspended user"),
|
|
("user_perms", "Changed user permission level"),
|
|
("user_deletion", "Deleted user account"),
|
|
("block_domain", "Blocked domain"),
|
|
("approve_domain", "Approved domain"),
|
|
("delete_item", "Deleted item"),
|
|
],
|
|
default="comment",
|
|
max_length=20,
|
|
),
|
|
),
|
|
migrations.RenameModel("ReportComment", "ReportAction"),
|
|
]
|