Skip to content

Commit

Permalink
fix: Renamed ecosystems types
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Sep 26, 2023
1 parent 3f37069 commit ee432e0
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import apps.core.models.commons

TERMS = {
"ecosystem-type": [
"ECOSYSTEM_TYPE": [
("Deserts", "Desert", "Desierto"),
("Savannas", "Savannah", "Sabana"),
("Shrublands", "Shrubland", "Matorrales"),
Expand All @@ -35,8 +35,17 @@ class Migration(migrations.Migration):
migrations.RunSQL(
sql=[
(
"UPDATE core_taxonomyterm SET value_es = %s, value_en= %s WHERE value_original = %s AND type= %s",
[value_es, value_en, current_value, type],
"""
UPDATE core_taxonomyterm
SET
value_es = %s,
value_original = %s,
value_en = %s
WHERE
value_original = %s AND
type = %s
""",
[value_es, value_en, value_en, current_value, type],
)
],
)
Expand Down

0 comments on commit ee432e0

Please sign in to comment.