-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.20.0' into develop
- Loading branch information
Showing
31 changed files
with
2,745 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/mmw/apps/modeling/migrations/0023_fix_gis_data_serialization.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
import ast | ||
import json | ||
|
||
from django.db import migrations | ||
|
||
|
||
def fix_gis_data_serialization(apps, schema_editor): | ||
Project = apps.get_model('modeling', 'Project') | ||
for project in Project.objects.filter(gis_data__startswith='{u'): | ||
project.gis_data = json.dumps(ast.literal_eval(project.gis_data)) | ||
project.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('modeling', '0022_project_wkaoi'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(fix_gis_data_serialization, | ||
migrations.RunPython.noop) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/mmw/js/src/compare/templates/compareDescriptionPopover.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{% if is_pre_columbian %} | ||
<h3 class="compare-no-mod-title">{{name}}</h3> | ||
<p> | ||
Lorem ipsum this scenario shows the tr55 model results under pre columbian conditions... | ||
Model simulation of a pre-development landscape, where forest replaces all agricultural and urban landcover. | ||
</p> | ||
{% elif is_current_conditions %} | ||
<h3 class="compare-no-mod-title">{{name}}</h3> | ||
<p> | ||
Lorem ipsum this is the model run under current conditions | ||
Model results based on 2011 NLCD land and 2016 gSSURGO soil datasets. | ||
</p> | ||
{% else %} | ||
<h3 class="compare-no-mod-title">No modifications</h3> | ||
<p> | ||
To add modifications, close this modal and select "Land cover" or "Conservation practices" lorem ipsum dolor sit | ||
To add modifications, close this modal and select "Land cover" or "Conservation practices". | ||
</p> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.