mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-10-31 23:22:49 +00:00
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.28 on 2020-04-22 21:09
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import re2o.mixins
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('tickets', '0004_auto_20200422_2127'),
|
|
]
|
|
|
|
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)),
|
|
],
|
|
options={
|
|
'verbose_name': 'ticket',
|
|
'verbose_name_plural': 'tickets',
|
|
'permissions': (('view_commentticket', 'Can view a ticket object'),),
|
|
},
|
|
bases=(re2o.mixins.AclMixin, models.Model),
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='ticket',
|
|
options={'permissions': (('view_ticket', 'Can view a ticket object'),), 'verbose_name': 'ticket', 'verbose_name_plural': 'tickets'},
|
|
),
|
|
migrations.AddField(
|
|
model_name='commentticket',
|
|
name='parent_ticket',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tickets.Ticket'),
|
|
),
|
|
]
|