OpenSlides/openslides/core/migrations/0002_session.py

36 lines
1.1 KiB
Python
Raw Normal View History

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sessions', '0001_initial'),
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Session',
fields=[
('session_ptr',
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to='sessions.Session')),
('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name_plural': 'sessions',
'abstract': False,
'verbose_name': 'session',
},
bases=('sessions.session',),
),
]