mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-01 04:13:18 +01:00
37 lines
1.4 KiB
Python
37 lines
1.4 KiB
Python
|
# Generated by Django 2.0.5 on 2019-03-07 20:30
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import helpdesk.models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('helpdesk', '0025_queue_dedicated_time'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='KBIAttachment',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('file', models.FileField(max_length=1000, upload_to=helpdesk.models.attachment_path, verbose_name='File')),
|
||
|
('filename', models.CharField(max_length=1000, verbose_name='Filename')),
|
||
|
('mime_type', models.CharField(max_length=255, verbose_name='MIME Type')),
|
||
|
('size', models.IntegerField(help_text='Size of this file in bytes', verbose_name='Size')),
|
||
|
('kbitem', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='helpdesk.KBItem', verbose_name='Knowledge base item')),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Attachment',
|
||
|
'verbose_name_plural': 'Attachments',
|
||
|
'ordering': ('filename',),
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.RenameModel(
|
||
|
old_name='Attachment',
|
||
|
new_name='FollowUpAttachment',
|
||
|
),
|
||
|
]
|