From f1e27f6066050b9c5a26047ddc30973bcd7c0363 Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Wed, 30 Dec 2020 18:05:35 +0100 Subject: [PATCH] Tickets --- tickets/migrations/0001_squashed_0007.py | 81 ++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 tickets/migrations/0001_squashed_0007.py diff --git a/tickets/migrations/0001_squashed_0007.py b/tickets/migrations/0001_squashed_0007.py new file mode 100644 index 00000000..19c73679 --- /dev/null +++ b/tickets/migrations/0001_squashed_0007.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.29 on 2020-12-30 16:53 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import re2o.mixins + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + replaces = [ + ("tickets", "0001_initial"), + ("tickets", "0002_auto_20191120_0159"), + ("tickets", "0003_auto_20200422_1839"), + ("tickets", "0004_auto_20200422_2127"), + ("tickets", "0005_auto_20200422_2309"), + ("tickets", "0006_auto_20200423_0202"), + ("tickets", "0007_ticket_language"), + ] + + operations = [ + migrations.CreateModel( + name='CommentTicket', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('date', models.DateTimeField(auto_now_add=True)), + ('comment', models.TextField(max_length=4095)), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ticket_comment', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'verbose_name': 'ticket', + 'verbose_name_plural': 'tickets', + 'permissions': (('view_commentticket', 'Can view a ticket object'),), + }, + bases=(re2o.mixins.AclMixin, models.Model), + ), + migrations.CreateModel( + name='Ticket', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(help_text='Title of the ticket.', max_length=255)), + ('description', models.TextField(max_length=3000)), + ('date', models.DateTimeField(auto_now_add=True)), + ('email', models.EmailField(help_text='An email address to get back to you.', max_length=100, null=True)), + ('solved', models.BooleanField(default=False)), + ('language', models.CharField(default='en', help_text='Language of the ticket.', max_length=16)), + ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tickets', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'verbose_name': 'ticket', + 'verbose_name_plural': 'tickets', + 'permissions': (('view_ticket', 'Can view a ticket object'),), + }, + bases=(re2o.mixins.AclMixin, models.Model), + ), + migrations.CreateModel( + name='TicketOption', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('publish_address', models.EmailField(help_text='Email address to publish the new tickets (leave empty for no publication).', max_length=1000, null=True)), + ], + options={ + 'verbose_name': 'tickets options', + 'permissions': (('view_ticketoption', 'Can view tickets options'),), + }, + bases=(re2o.mixins.AclMixin, models.Model), + ), + migrations.AddField( + model_name='commentticket', + name='parent_ticket', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tickets.Ticket'), + ), + ]