aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/apps/api/migrations/0020_infraction.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-05 18:24:32 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-05 18:24:32 +0100
commitab8b798547e82ca79882ba28b1920077c803425f (patch)
treeb28a9005d05dfd2c9da62351671bf2aa6e37f7dc /pysite/apps/api/migrations/0020_infraction.py
parent[#158 #160] Automatically run collectstatic in containers/setup script (diff)
pysite -> pydis_site
Diffstat (limited to 'pysite/apps/api/migrations/0020_infraction.py')
-rw-r--r--pysite/apps/api/migrations/0020_infraction.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/pysite/apps/api/migrations/0020_infraction.py b/pysite/apps/api/migrations/0020_infraction.py
deleted file mode 100644
index 7f7d5a41..00000000
--- a/pysite/apps/api/migrations/0020_infraction.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Generated by Django 2.1.3 on 2018-11-19 22:02
-
-import pysite.apps.api.models
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0019_user_in_guild'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='Infraction',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('inserted_at', models.DateTimeField(auto_now_add=True, help_text='The date and time of the creation of this infraction.')),
- ('expires_at', models.DateTimeField(help_text="The date and time of the expiration of this infraction. Null if the infraction is permanent or it can't expire.", null=True)),
- ('active', models.BooleanField(default=True, help_text='Whether the infraction is still active.')),
- ('type', models.CharField(choices=[('note', 'Note'), ('warning', 'Warning'), ('mute', 'Mute'), ('ban', 'Ban'), ('kick', 'Kick'), ('superstar', 'Superstar')], help_text='The type of the infraction.', max_length=9)),
- ('reason', models.TextField(help_text='The reason for the infraction.')),
- ('hidden', models.BooleanField(default=False, help_text='Whether the infraction is a shadow infraction.')),
- ('actor', models.ForeignKey(help_text='The user which applied the infraction.', on_delete=django.db.models.deletion.CASCADE, related_name='infractions_given', to='api.User')),
- ('user', models.ForeignKey(help_text='The user to which the infraction was applied.', on_delete=django.db.models.deletion.CASCADE, related_name='infractions_received', to='api.User')),
- ],
- bases=(pysite.apps.api.models.ModelReprMixin, models.Model),
- ),
- ]