Browse Source

Fix PDF report crash

upgrade-sapl
Edward Ribeiro 2 months ago
parent
commit
0bc4ae5661
  1. 4
      requirements/requirements.txt
  2. 3
      sapl/materia/urls.py

4
requirements/requirements.txt

@ -5,6 +5,7 @@ Django==4.2.23
django-haystack==3.3.0 django-haystack==3.3.0
django-filter==24.3 django-filter==24.3
djangorestframework==3.15.2 djangorestframework==3.15.2
drf-spectacular==0.28.0
django-crispy-forms==2.4 django-crispy-forms==2.4
crispy-bootstrap4==2024.1 crispy-bootstrap4==2024.1
@ -20,8 +21,10 @@ easy-thumbnails==2.9.0
# Images / files / PDF # Images / files / PDF
django-image-cropping==1.7.0 django-image-cropping==1.7.0
Pillow==10.3.0 Pillow==10.3.0
trml2pdf==0.6
weasyprint==66.0 weasyprint==66.0
PyPDF4==1.27.0 PyPDF4==1.27.0
rlPyCairo==0.4.0
# Frontend integration # Frontend integration
django-webpack-loader==1.6.0 # (works; keep unless you’re moving to webpack5 forks) django-webpack-loader==1.6.0 # (works; keep unless you’re moving to webpack5 forks)
@ -50,7 +53,6 @@ XlsxWriter==3.2.0
# Custom / VCS deps you already use # Custom / VCS deps you already use
git+https://github.com/infrae/pyoai@5ff2f15e869869e70d8139e4c37b7832854d7049 git+https://github.com/infrae/pyoai@5ff2f15e869869e70d8139e4c37b7832854d7049
git+https://github.com/interlegis/trml2pdf
git+https://github.com/interlegis/django-admin-bootstrapped git+https://github.com/interlegis/django-admin-bootstrapped
# REMOVE this old backport package completely (Django ships postgres contrib): # REMOVE this old backport package completely (Django ships postgres contrib):

3
sapl/materia/urls.py

@ -142,8 +142,7 @@ urlpatterns_proposicao = [
name='proposicao-recebida'), name='proposicao-recebida'),
re_path(r'^proposicao/devolvida/', ProposicaoDevolvida.as_view(), re_path(r'^proposicao/devolvida/', ProposicaoDevolvida.as_view(),
name='proposicao-devolvida'), name='proposicao-devolvida'),
re_path(r'^proposicao/confirmar/P(?P<hash>[0-9A-Fa-f]+)/' re_path(r'^proposicao/confirmar/P(?P<hash>[0-9A-Fa-f]+)/(?P<pk>\d+)', ConfirmarProposicao.as_view(),
'(?P<pk>\d+)', ConfirmarProposicao.as_view(),
name='proposicao-confirmar'), name='proposicao-confirmar'),
path('sistema/proposicao/tipo/', path('sistema/proposicao/tipo/',
include(TipoProposicaoCrud.get_urls())), include(TipoProposicaoCrud.get_urls())),

Loading…
Cancel
Save