diff options
| author | 2019-01-20 13:35:21 +0100 | |
|---|---|---|
| committer | 2019-01-20 13:35:21 +0100 | |
| commit | 412f4a1d94d9185ff5684be25cb99235b4e207e9 (patch) | |
| tree | b80083ee0cf70d3d498095467a47e717358231fc | |
| parent | Account for broken import sorting on Azure. (diff) | |
Add the `watch` infraction type.
| -rw-r--r-- | api/migrations/0029_add_infraction_type_watch.py | 18 | ||||
| -rw-r--r-- | api/models.py | 1 | 
2 files changed, 19 insertions, 0 deletions
| diff --git a/api/migrations/0029_add_infraction_type_watch.py b/api/migrations/0029_add_infraction_type_watch.py new file mode 100644 index 00000000..c6f88a11 --- /dev/null +++ b/api/migrations/0029_add_infraction_type_watch.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.5 on 2019-01-20 11:52 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + +    dependencies = [ +        ('api', '0028_allow_message_content_blank'), +    ] + +    operations = [ +        migrations.AlterField( +            model_name='infraction', +            name='type', +            field=models.CharField(choices=[('note', 'Note'), ('warning', 'Warning'), ('watch', 'Watch'), ('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 4f6d00ae..6dce0eb4 100644 --- a/api/models.py +++ b/api/models.py @@ -315,6 +315,7 @@ class Infraction(ModelReprMixin, models.Model):      TYPE_CHOICES = (          ("note", "Note"),          ("warning", "Warning"), +        ("watch", "Watch"),          ("mute", "Mute"),          ("kick", "Kick"),          ("ban", "Ban"), | 
