aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-01-05 15:54:57 +0100
committerGravatar Johannes Christ <[email protected]>2019-01-05 15:54:57 +0100
commit336fd9616d6b858d3df682ec0180bc0ebbbce225 (patch)
tree2ec1333d5c8cf020ee4c8c0616b6411c43370f57
parentDocument deployment. (diff)
Add the `note` infraction type.
-rw-r--r--api/migrations/0024_add_note_infraction_type.py18
-rw-r--r--api/models.py3
2 files changed, 20 insertions, 1 deletions
diff --git a/api/migrations/0024_add_note_infraction_type.py b/api/migrations/0024_add_note_infraction_type.py
new file mode 100644
index 00000000..4adb53b8
--- /dev/null
+++ b/api/migrations/0024_add_note_infraction_type.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.4 on 2019-01-05 14:52
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('api', '0023_merge_infractions_snake_validators'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='infraction',
+ name='type',
+ field=models.CharField(choices=[('note', 'Note'), ('warning', 'Warning'), ('mute', 'Mute'), ('kick', 'Kick'), ('ban', 'Ban'), ('superstar', 'Superstar')], help_text='The type of the infraction.', max_length=9),
+ ),
+ ]
diff --git a/api/models.py b/api/models.py
index 21b5975a..480dba3d 100644
--- a/api/models.py
+++ b/api/models.py
@@ -241,10 +241,11 @@ class Infraction(ModelReprMixin, models.Model):
"""An infraction for a Discord user."""
TYPE_CHOICES = (
+ ("note", "Note"),
("warning", "Warning"),
("mute", "Mute"),
- ("ban", "Ban"),
("kick", "Kick"),
+ ("ban", "Ban"),
("superstar", "Superstar")
)
inserted_at = models.DateTimeField(