├── claims ├── __init__.py ├── migrations │ ├── __init__.py │ ├── 0005_alter_valueclaim_value.py │ ├── 0009_claimtype_value_template.py │ ├── 0006_alter_claimtype_value_schema.py │ ├── 0008_claimtype_code_name.py │ ├── 0007_auto_20211204_1230.py │ ├── 0002_auto_20211203_1338.py │ ├── 0003_auto_20211203_2007.py │ ├── 0004_auto_20211203_2032.py │ └── 0001_initial.py ├── views.py ├── apps.py ├── forms.py ├── permissions.py ├── admin.py ├── models.py ├── tests.py ├── schema.py └── services.py ├── oauth ├── __init__.py ├── tests │ ├── __init__.py │ ├── schema │ │ └── __init__.py │ └── services │ │ ├── __init__.py │ │ └── test_user_profile_service.py ├── migrations │ ├── __init__.py │ ├── 0004_alter_userprofile_profile_picture.py │ ├── 0002_auto_20210206_1222.py │ ├── 0003_auto_20211208_1559.py │ └── 0001_initial.py ├── admin.py ├── signals.py ├── apps.py ├── forms.py ├── models.py ├── urls.py ├── oauth_backend.py ├── services.py ├── views.py └── schema.py ├── person ├── __init__.py ├── migrations │ ├── __init__.py │ ├── 0007_personposition_plural_name.py │ ├── 0004_alter_person_position.py │ ├── 0006_auto_20220327_0940.py │ ├── 0005_alter_person_position.py │ ├── 0002_auto_20211212_1532.py │ ├── 0001_initial.py │ └── 0003_personposition_positionabbreviation.py ├── tests.py ├── views.py ├── apps.py ├── admin.py ├── forms.py ├── permissions.py ├── models.py ├── services.py └── schema.py ├── orgcharts ├── __init__.py ├── migrations │ ├── __init__.py │ ├── 0003_alter_orgchart_unique_together.py │ ├── 0002_alter_orgchart_created_at.py │ ├── 0007_orgcharterror_status.py │ ├── 0005_alter_orgchart_status.py │ ├── 0004_auto_20211212_1532.py │ ├── 0006_orgcharterror.py │ └── 0001_initial.py ├── tests.py ├── views.py ├── apps.py ├── admin.py ├── management │ └── commands │ │ ├── update_orgcharts.py │ │ └── preprocess_orgcharts.py ├── forms.py ├── permissions.py ├── models.py ├── signals.py ├── schema.py └── services.py ├── settings ├── __init__.py ├── apps.py ├── templates │ ├── registration │ │ ├── logout.html │ │ └── login.html │ ├── auth_base.html │ ├── oauth │ │ ├── authorization.html │ │ └── auth_base.html │ └── account.html ├── admin.py ├── default_groups.py ├── asgi.py ├── wsgi.py ├── configs │ ├── dev.py.example │ ├── production.py │ ├── test.py │ └── base.py ├── search.py ├── schema.py ├── views.py ├── urls.py └── static │ └── css │ └── auth.css ├── organisation ├── __init__.py ├── migrations │ ├── __init__.py │ ├── 0005_organisationaddress_phone_prefix.py │ ├── 0007_alter_organisationaddress_street.py │ ├── 0003_organisationentity_short_name.py │ ├── 0008_alter_organisationaddress_postal_code.py │ ├── 0009_alter_organisationaddress_postal_code.py │ ├── 0006_alter_organisationaddress_phone_prefix.py │ ├── 0002_alter_organisationentity_parent.py │ ├── 0001_initial.py │ └── 0004_auto_20211218_0113.py ├── tests.py ├── views.py ├── apps.py ├── admin.py ├── forms.py ├── models.py ├── documents.py ├── permissions.py ├── schema.py └── services.py ├── .platform └── nginx │ └── conf.d │ ├── body_size.conf │ └── timeouts.conf ├── .DS_Store ├── .pre-commit-config.yaml ├── .ebextensions ├── 00-os-packages.config ├── 01-additional-packages.config └── 03-container-commands.config ├── .github └── workflows │ ├── black.yml │ ├── django.yml │ ├── deploy.yml │ └── codeql-analysis.yml ├── README.md ├── manage.py ├── pyproject.toml └── .gitignore /claims/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /oauth/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /person/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /oauth/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /orgcharts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /settings/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /oauth/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /organisation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /claims/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /oauth/tests/schema/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /oauth/tests/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /orgcharts/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /person/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /organisation/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.platform/nginx/conf.d/body_size.conf: -------------------------------------------------------------------------------- 1 | client_max_body_size 200M; -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bundesAPI/strukturen/HEAD/.DS_Store -------------------------------------------------------------------------------- /person/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /claims/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /organisation/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /orgcharts/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /orgcharts/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /person/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /organisation/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /oauth/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | from oauth.models import UserProfile 4 | 5 | admin.site.register(UserProfile) 6 | -------------------------------------------------------------------------------- /settings/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class SettingsConfig(AppConfig): 5 | name = "settings" 6 | verbose_name = "Strukturen" 7 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | 2 | repos: 3 | - repo: https://github.com/ambv/black 4 | rev: stable 5 | hooks: 6 | - id: black 7 | language_version: python3.9 8 | -------------------------------------------------------------------------------- /.ebextensions/00-os-packages.config: -------------------------------------------------------------------------------- 1 | packages: 2 | yum: 3 | git: [] 4 | postgresql-devel: [] 5 | automake: [] 6 | gcc: [] 7 | gcc-c++: [] 8 | libcurl-devel: [] -------------------------------------------------------------------------------- /claims/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class ClaimsConfig(AppConfig): 5 | default_auto_field = "django.db.models.BigAutoField" 6 | name = "claims" 7 | -------------------------------------------------------------------------------- /person/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class PersonConfig(AppConfig): 5 | default_auto_field = "django.db.models.BigAutoField" 6 | name = "person" 7 | -------------------------------------------------------------------------------- /oauth/signals.py: -------------------------------------------------------------------------------- 1 | from django.dispatch import receiver 2 | from django.db.models.signals import post_save 3 | from django.conf import settings 4 | 5 | from oauth.models import UserProfile 6 | -------------------------------------------------------------------------------- /organisation/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class OrganisationConfig(AppConfig): 5 | default_auto_field = "django.db.models.BigAutoField" 6 | name = "organisation" 7 | -------------------------------------------------------------------------------- /.platform/nginx/conf.d/timeouts.conf: -------------------------------------------------------------------------------- 1 | keepalive_timeout 600; 2 | proxy_connect_timeout 600; 3 | proxy_send_timeout 600; 4 | proxy_read_timeout 600; 5 | send_timeout 600; 6 | fastcgi_send_timeout 600; 7 | fastcgi_read_timeout 600; -------------------------------------------------------------------------------- /.github/workflows/black.yml: -------------------------------------------------------------------------------- 1 | name: Lint 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | lint: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v2 10 | - uses: psf/black@stable 11 | -------------------------------------------------------------------------------- /orgcharts/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class OrgchartsConfig(AppConfig): 5 | default_auto_field = "django.db.models.BigAutoField" 6 | name = "orgcharts" 7 | 8 | def ready(self): 9 | from . import signals 10 | -------------------------------------------------------------------------------- /oauth/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class OauthConfig(AppConfig): 5 | name = "oauth" 6 | 7 | def register_signals(self): 8 | from . import signals 9 | 10 | def ready(self): 11 | self.register_signals() 12 | -------------------------------------------------------------------------------- /settings/templates/registration/logout.html: -------------------------------------------------------------------------------- 1 | {% extends "auth_base.html" %} 2 | {% load i18n %} 3 | {% load crispy_forms_tags %} 4 | 5 | {% block form_content %} 6 |
There was an issue with your request: {{ error.description }}
42 | 43 | {% endif %} 44 |