Skip to content

Commit

Permalink
- Fix GeoServer Signals
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Nov 13, 2018
1 parent 142d229 commit 167612d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/geoserver/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def command_url(command):
create_gs_thumbnail(instance, overwrite=True)

try:
Link.objects.filter(resource=instance.resourcebase_ptr).delete()
Link.objects.filter(resource=instance.resourcebase_ptr, name='Legend').delete()
except BaseException:
pass

Expand Down
2 changes: 2 additions & 0 deletions geonode/maps/templates/maps/map_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ <h4>{% trans "Map" %}</h4>
</div>
</div>
{% endif %}
{% if "change_resourcebase" not in perms_list and "change_resourcebase_metadata" not in perms_list %}
<li class="list-group-item">
<a href="{% url "map_view" resource.id %}" class="btn btn-default btn-md btn-block">{% trans "View Map" %}</a>
</li>
{% endif %}
{% comment %}
<li class="list-group-item">
<a href="#" class="btn btn-default btn-md btn-block">{% trans "Print Map" %}</a>
Expand Down

0 comments on commit 167612d

Please sign in to comment.