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.
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
# Generated by Django 2.1.5 on 2019-01-19 15:41
|
|
|
|
import jsonfield.encoder
|
|
import jsonfield.fields
|
|
from django.db import migrations, models
|
|
|
|
|
|
def clear_history(apps, schema_editor):
|
|
"""
|
|
Deletes the full history.
|
|
"""
|
|
# We get the model from the versioned app registry;
|
|
# if we directly import it, it will be the wrong version.
|
|
History = apps.get_model("core", "History")
|
|
History.objects.all().delete()
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [("core", "0012_auto_20190119_1425")]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="history",
|
|
name="restricted",
|
|
field=models.BooleanField(default=False),
|
|
),
|
|
migrations.RunPython(clear_history),
|
|
migrations.AlterField(
|
|
model_name="history",
|
|
name="information",
|
|
field=jsonfield.fields.JSONField(
|
|
dump_kwargs={
|
|
"cls": jsonfield.encoder.JSONEncoder,
|
|
"separators": (",", ":"),
|
|
},
|
|
load_kwargs={},
|
|
),
|
|
),
|
|
]
|