Skip to content

Commit

Permalink
fix: container replace gettext_lazy with gettext (#164)
Browse files Browse the repository at this point in the history
* container: replace gettext_lazy with gettext

* Remove doubly-lazy help text

---------

Co-authored-by: Florian Repenn <florian.repenn@lfda.de>
Co-authored-by: Fabian Braun <fsbraun@gmx.de>
  • Loading branch information
3 people authored Jun 7, 2024
1 parent 42d3691 commit 49983f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_grid/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from functools import partial

Check failure on line 1 in djangocms_bootstrap4/contrib/bootstrap4_grid/models.py

View workflow job for this annotation

GitHub Actions / isort

Imports are incorrectly sorted and/or formatted.

from django.db import models
from django.utils.translation import gettext
from django.utils.translation import gettext_lazy as _

from django.utils.translation import ngettext
Expand Down Expand Up @@ -37,7 +38,7 @@ class Bootstrap4GridContainer(CMSPlugin):
default=get_first_choice(GRID_CONTAINER_CHOICES),
max_length=255,
help_text=mark_safe_lazy(
_(
gettext(
"Defines if the grid should use fixed width (<code>.container</code>) "
"or fluid width (<code>.container-fluid</code>)."
)
Expand Down

0 comments on commit 49983f4

Please sign in to comment.