|
@ -373,13 +373,13 @@ class DocumentoAdministrativoCrud(Crud): |
|
|
return redirect('/') |
|
|
return redirect('/') |
|
|
return super(Crud.DetailView, self).get(args, kwargs) |
|
|
return super(Crud.DetailView, self).get(args, kwargs) |
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
def urlize(self, obj, fieldname): |
|
|
context = super().get_context_data(**kwargs) |
|
|
a = '<a href="%s">%s</a>' % ( |
|
|
self.layout_display[0]['rows'][-1][0]['text'] = ( |
|
|
reverse( |
|
|
'<a href="%s"></a>' % reverse( |
|
|
|
|
|
'sapl.protocoloadm:doc_texto_integral', |
|
|
'sapl.protocoloadm:doc_texto_integral', |
|
|
kwargs={'pk': self.object.pk})) |
|
|
kwargs={'pk': obj.pk}), |
|
|
return context |
|
|
obj.texto_integral.name.split('/')[-1]) |
|
|
|
|
|
return obj.texto_integral.field.verbose_name, a |
|
|
|
|
|
|
|
|
class DeleteView(Crud.DeleteView): |
|
|
class DeleteView(Crud.DeleteView): |
|
|
|
|
|
|
|
|