OpenSlides/server/openslides/core/migrations/0003_auto_20161217_1158.py
FinnStutzenstein 2bcab5d098
Repository restructure
- moved all server related things into the folder `server`, so this
configuration is parallel to the client.
- All main "services" are now folders in the root directory
- Added Dockerfiles to each service (currently server and client)
- Added a docker compose configuration to start everything together.
Currently there are heavy dependencies into https://github.com/OpenSlides/openslides-docker-compose
- Resturctured the .gitignore. If someone needs something excluded,
please add it to the right section.
- Added initial build setup with Docker and docker-compose.
- removed setup.py. We won't deliver OpenSlides via pip anymore.
2020-08-21 08:11:13 +02:00

27 lines
806 B
Python

# Generated by Django 1.10.4 on 2016-12-17 10:58
from __future__ import unicode_literals
from django.db import migrations
def remove_session_content_type(apps, schema_editor):
"""
Remove session content_type because we want to delete the session model in
the next step.
"""
# We get the model from the versioned app registry;
# if we directly import it, it will be the wrong version.
ContentType = apps.get_model("contenttypes", "ContentType")
Session = apps.get_model("core", "Session")
ContentType.objects.get_for_model(Session).delete()
class Migration(migrations.Migration):
dependencies = [("core", "0002_misc_features")]
operations = [
migrations.RunPython(remove_session_content_type),
migrations.DeleteModel(name="Session"),
]