Browse Source

Fix #1448

pull/1607/head
LeandroRoberto 7 years ago
parent
commit
7bc9eac972
  1. 2
      sapl/compilacao/views.py
  2. 5
      sapl/templates/compilacao/publicacao_detail.html

2
sapl/compilacao/views.py

@ -877,7 +877,7 @@ class PublicacaoCreateView(PublicacaoMixin, FormMessagesMixin, CreateView):
class PublicacaoDetailView(PublicacaoMixin, DetailView):
model = Publicacao
permission_required = 'compilacao.detail_publicacao'
permission_required = []
class PublicacaoUpdateView(PublicacaoMixin, UpdateView):

5
sapl/templates/compilacao/publicacao_detail.html

@ -81,8 +81,9 @@
</div>
<div class="col-md-8">
<div id="div_id_tipo" class="holder">
<label>{% field_verbose_name object 'url_externa' %}</label>
<p>{{ object.url_externa|default:''}}</p>
{% if object.url_externa %}
<label><a href="{{ object.url_externa|default:''}}">{% field_verbose_name object 'url_externa' %}</a></label>
{% endif %}
</div>
</div>
</div>

Loading…
Cancel
Save