Skip to content
Snippets Groups Projects
Commit 72c644eb authored by dcz's avatar dcz
Browse files

Database fulfill bugfix

parent cb45bf4d
Branches
Tags
No related merge requests found
......@@ -4,9 +4,13 @@
In order to run the development environment locally:
1. Make sure you have [Docker Desktop](https://docs.docker.com/desktop/) and [Docker Compose](https://docs.docker.com/compose/) installed.
2. Set evn variable pointing to the path where yhe database will be located
export DATABASE_DIR=<path to database dir in local file system>
2. Build and run the project by executing:
./docker/scripts/run-docker -e DATABASE_DIR=<path to database dir in local file system>
./docker/scripts/run-docker
3. In order to fulfill database execute belove commands
......
#!/usr/bin/env bash
set -e
docker-compose up --build $@
docker-compose up -d --build
......@@ -20,6 +20,16 @@ class Command(BaseCommand):
codename="manage_invalid_lexical_units",
defaults={"name": "Manage invalid Lexical Units"}
)
Permission.objects.update_or_create(
content_type=ContentType.objects.get_for_model(FinStatement),
codename="edit_statement",
defaults={"name": "Edit financial statement"}
)
Permission.objects.update_or_create(
content_type=ContentType.objects.get_for_model(FinStatement),
codename="add_statement",
defaults={"name": "Add financial statement"}
)
admins, __ = Group.objects.get_or_create(name='Admini')
admins.permissions.add(
self._get_permission(User, 'view_user'),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment