2015-06-11 12:18:45 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from django.db import models, migrations
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2015-06-12 11:22:26 +02:00
|
|
|
('helpdesk', '0003_initial_data_import'),
|
2015-06-11 12:18:45 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='QueueMembership',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
('queues', models.ManyToManyField(to='helpdesk.Queue', verbose_name='Authorized Queues')),
|
2017-12-28 13:23:51 +01:00
|
|
|
('user', models.OneToOneField(verbose_name='User', to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)),
|
2015-06-11 12:18:45 +02:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Queue Membership',
|
|
|
|
'verbose_name_plural': 'Queue Memberships',
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|