aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/migrations
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-07-11 16:35:41 +0800
committerGravatar D0rs4n <[email protected]>2021-12-18 18:02:11 +0100
commit1095346a1f86e43d5d5c39045a54354d1290fe0e (patch)
treee7b5f6c622a30037fca65b13019fa38c6fe9f009 /pydis_site/apps/api/migrations
parentFix faulty model enumeration. (diff)
Improve name of dm sent to triggered user.
Diffstat (limited to 'pydis_site/apps/api/migrations')
-rw-r--r--pydis_site/apps/api/migrations/0070_new_filter_schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/migrations/0070_new_filter_schema.py b/pydis_site/apps/api/migrations/0070_new_filter_schema.py
index eb55e329..8580033a 100644
--- a/pydis_site/apps/api/migrations/0070_new_filter_schema.py
+++ b/pydis_site/apps/api/migrations/0070_new_filter_schema.py
@@ -23,7 +23,7 @@ def forward(apps: Apps, schema_editor: BaseDatabaseSchemaEditor) -> None:
objects = filter_list_old.objects.filter(type=name)
default_action = filter_action.objects.create(
- user_dm=None,
+ dm_content=None,
infraction_type=None,
infraction_reason="",
infraction_duration=None
@@ -102,7 +102,7 @@ class Migration(migrations.Migration):
name='FilterAction',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('user_dm', models.CharField(help_text='The DM to send to a user triggering this filter.', max_length=1000, null=True)),
+ ('dm_content', models.CharField(help_text='The DM to send to a user triggering this filter.', max_length=1000, null=True)),
('infraction_type', models.CharField(choices=[('Note', 'Note'), ('Warn', 'Warn'), ('Mute', 'Mute'), ('Kick', 'Kick'), ('Ban', 'Ban')], help_text='The infraction to apply to this user.', max_length=4, null=True)),
('infraction_reason', models.CharField(help_text='The reason to give for the infraction.', max_length=1000)),
('infraction_duration', models.DurationField(help_text='The duration of the infraction. Null if permanent.', null=True)),