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): class PublicacaoDetailView(PublicacaoMixin, DetailView):
model = Publicacao model = Publicacao
permission_required = 'compilacao.detail_publicacao' permission_required = []
class PublicacaoUpdateView(PublicacaoMixin, UpdateView): class PublicacaoUpdateView(PublicacaoMixin, UpdateView):

5
sapl/templates/compilacao/publicacao_detail.html

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

Loading…
Cancel
Save