Skip to content

Commit

Permalink
Upgrade Django 4.0 to 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
laoumh authored and benadida committed Sep 16, 2024
1 parent 8713201 commit 2bc8e1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helios/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def is_archived(self):
@property
def description_bleached(self):
return bleach.clean(self.description,
tags=bleach.ALLOWED_TAGS + ['p', 'h4', 'h5', 'h3', 'h2', 'br', 'u'],
tags=list(bleach.ALLOWED_TAGS) + ['p', 'h4', 'h5', 'h3', 'h2', 'br', 'u'],
strip=True,
strip_comments=True,
)
Expand Down
2 changes: 1 addition & 1 deletion helios/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ def compress(self, data_list):
def render(self, name, value, attrs=None, renderer=None):
value = self.compress(value)
rendered_widgets = list(widget.render(name, value, attrs=attrs, renderer=renderer) for widget in self.widgets)
return '<br/>'.join(rendered_widgets)
return mark_safe('<br/>'.join(rendered_widgets))
2 changes: 2 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def get_from_env(var, default):
# system time zone.
TIME_ZONE = 'America/Los_Angeles'

USE_TZ = False

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
Expand Down

0 comments on commit 2bc8e1e

Please sign in to comment.