Skip to content

Commit

Permalink
[IMP] openupgrade_160: add some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
duong77476-viindoo committed Aug 25, 2023
1 parent 5905ca7 commit a1759d0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions openupgradelib/openupgrade_160.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,9 @@ def migrate_translations_to_jsonb(env, fields_spec):
("mr", "me"),
)

_MARGIN_PADDING_SIZE = (
"0", "1", "2", "3", "4", "5", "auto"
)
_MARGIN_PADDING_SIZE = ("0", "1", "2", "3", "4", "5", "auto")

_MARGIN_PADDING = (
"sm", "lg"
)
_MARGIN_PADDING = ("sm", "lg")

# These replacements are from standard Bootstrap 4 to 5
_BS5_REPLACEMENTS = (
Expand Down Expand Up @@ -131,7 +127,7 @@ def migrate_translations_to_jsonb(env, fields_spec):
*(
_r("%s-%s-%s" % (t4, context, size), "%s-%s-%s" % (t5, context, size))
for (t4, t5), context, size in product(
_MARGIN_PADDING_ELEMENT_REPLACEMENT, _MARGIN_PADDING,_MARGIN_PADDING_SIZE
_MARGIN_PADDING_ELEMENT_REPLACEMENT, _MARGIN_PADDING, _MARGIN_PADDING_SIZE
)
),
# Forms
Expand Down

0 comments on commit a1759d0

Please sign in to comment.