bethlakshmi / gbe-divio-djangocms-python2.7

3rd try is the charm - Divio Cloud, Django CMS, Python 3.x, Django 3.x
Apache License 2.0
6 stars 1 forks source link

Gbe 562: fix 500 error when comping two acts in a row #565

Closed bethlakshmi closed 9 months ago

bethlakshmi commented 9 months ago

Problem came from not properly using the django template "path" variables - was sending the get request, when that was excessive. Also from not cleaning the input properly in the create transaction view.

The two together created a malformed URL when the comp of the ticket was completed.

Fixed now.

Only wrote 1 test. It turns out that there was no testing at all for the privileged functions for comping acts. May want to tackle that later - but since the logic is in the template, prepared to leave alone for now.