2bcab5d098
- 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.
27 lines
806 B
Python
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"),
|
|
]
|