diff --git a/sapl/materia/views.py b/sapl/materia/views.py index ddb78defb..bc2478d49 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1098,8 +1098,6 @@ class AutoriaCrud(MasterDetailCrud): autores_ativos = self.autores_ativos() autores = [] - for a in autores_ativos: - autores.append([a.id, a.__str__()]) context['form'].fields['autor'].choices = autores return context diff --git a/sapl/templates/crud/detail.html b/sapl/templates/crud/detail.html index 64bd7203a..1653a11e4 100644 --- a/sapl/templates/crud/detail.html +++ b/sapl/templates/crud/detail.html @@ -114,4 +114,6 @@ {% include "paginacao.html" %} {% endblock table_content %} + + {% block extra_js %}{% endblock %} {% endblock base_content %} diff --git a/sapl/templates/materia/autoria_form.html b/sapl/templates/materia/autoria_form.html new file mode 100644 index 000000000..c310b9128 --- /dev/null +++ b/sapl/templates/materia/autoria_form.html @@ -0,0 +1,31 @@ +{% extends "crud/form.html" %} +{% load i18n %} +{% load crispy_forms_tags %} +{% load common_tags %} + +{% block extra_js %} + +{% endblock %}