Skip to content

Commit

Permalink
Fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosenpfand committed Feb 18, 2024
1 parent 367b40c commit 341a619
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/extended_security/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class AdminModelView(AdminSecurityMixIn, ModelView):
column_hide_backrefs = False
can_view_details = True
can_export = True
export_types = ["csv", "json"]
# TODO: CSRF validation fails!
# form_base_class = SecureForm

Expand Down
2 changes: 1 addition & 1 deletion app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{% for code, lang in config['LANGUAGES'].items() %}
{% if not code == session['lang'] %}
{% set endpoint = request.url_rule.endpoint
if (request.url_rule.endpoint and (request.url_rule.endpoint not in ['static', 'bootstrap.static']))
if (request.url_rule.endpoint and (request.url_rule.endpoint not in ['static', 'bootstrap.static', 'admin.static']))
else 'main.home' %}
{{ render_nav_item(endpoint, lang, lang=code) }}
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/4dc24a017e3e_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-08-29 15:18:21.225770
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/5c38b4252e9a_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-02 20:18:52.593092
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/8f1f7de63334_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-02 22:46:46.827432
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/8ffa33cf23ae_revert_test_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-06-23 15:41:00.429393
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/d211c9345492_test_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-06-23 15:39:46.447630
"""

from alembic import op
import sqlalchemy as sa

Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black~=22.10
black~=24.2
pre-commit~=2.19
pytest~=7.1
flake8~=5.0
pytest-cov~=4.0
mypy~=0.982
types-requests~=2.28
types-requests~=2.28

0 comments on commit 341a619

Please sign in to comment.