From b100694cdae448d9cb1c670e74886299a67a76d0 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 16 Apr 2019 14:59:51 -0300 Subject: [PATCH] HOT-FIX: corrige erro de pk em LexML --- sapl/lexml/OAIServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/lexml/OAIServer.py b/sapl/lexml/OAIServer.py index cf85e4bf8..4964dbeb9 100644 --- a/sapl/lexml/OAIServer.py +++ b/sapl/lexml/OAIServer.py @@ -191,13 +191,13 @@ class OAIServer: else: formato = 'text/html' url_conteudo = BASE_URL_SAPL + reverse('sapl.norma:normajuridica_detail', - kwargs={'pk': norma.numero}) + kwargs={'pk': norma.pk}) element_maker = ElementMaker() id_publicador = str(publicador.id_publicador) item_conteudo = element_maker.Item(url_conteudo, formato=formato, idPublicador=id_publicador, tipo='conteudo') oai_lexml.append(item_conteudo) - url = BASE_URL_SAPL + reverse('sapl.norma:normajuridica_detail', kwargs={'pk': norma.numero}) + url = BASE_URL_SAPL + reverse('sapl.norma:normajuridica_detail', kwargs={'pk': norma.pk}) item_metadado = element_maker.Item(url, formato='text/html', idPublicador=id_publicador, tipo='metadado') oai_lexml.append(item_metadado) documento_individual = element_maker.DocumentoIndividual(urn)