diff options
-rw-r--r-- | api/migrations/0024_add_note_infraction_type.py | 18 | ||||
-rw-r--r-- | api/models.py | 3 |
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( |