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.
29 lines
672 B
Python
29 lines
672 B
Python
# Generated by Finn Stutzenstein on 2019-07-17 08:43
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
LABEL_MAPPING = {
|
|
"default": "grey",
|
|
"primary": "lightblue",
|
|
"success": "green",
|
|
"danger": "red",
|
|
"warning": "yellow",
|
|
}
|
|
|
|
|
|
def rename_css_classes(apps, schema_editor):
|
|
State = apps.get_model("motions", "State")
|
|
|
|
for state in State.objects.all():
|
|
old_class = state.css_class
|
|
state.css_class = LABEL_MAPPING.get(old_class, "lightblue")
|
|
state.save(skip_autoupdate=True)
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [("motions", "0030_state_css_classes_1")]
|
|
|
|
operations = [migrations.RunPython(rename_css_classes)]
|