Skip to content

Commit

Permalink
🚨(backend) fix linting issue
Browse files Browse the repository at this point in the history
Fix linting issue in the backend codebase.
  • Loading branch information
AntoLC committed Apr 12, 2024
1 parent 5587cf6 commit 0024cc5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from django.db import models
from django.template.base import Template as DjangoTemplate
from django.template.context import Context
from django.utils.html import format_html
from django.utils.functional import lazy
from django.utils.html import format_html
from django.utils.translation import gettext_lazy as _

import frontmatter
Expand Down
4 changes: 2 additions & 2 deletions src/backend/demo/management/commands/create_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def create_demo(stdout):
<div class="body">{{ body }}</div>
</div>
</page>
""",
""",
css="""
body {
background: white;
Expand Down Expand Up @@ -207,7 +207,7 @@ def create_demo(stdout):
text-align: justify;
ligne-height: 0.8;
}
""",
""",
is_public=True,
)
)
Expand Down
2 changes: 0 additions & 2 deletions src/backend/demo/tests/test_commands_create_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

from core import models



pytestmark = pytest.mark.django_db


Expand Down
2 changes: 1 addition & 1 deletion src/backend/impress/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ class Production(Base):
#
# In other cases, you should comment the following line to avoid security issues.
# SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

# Modern browsers require to have the `secure` attribute on cookies with `Samesite=none`
CSRF_COOKIE_SECURE = True
Expand Down

0 comments on commit 0024cc5

Please sign in to comment.