maposmatic
maposmatic copied to clipboard
Selecting many overlays causes a form validation error in MyOSMatic
There are lots of cool overlays in MyOSMatic on https://print.get-map.org but if I select too many, I get the form validation error in the screenshot. It seems that 'overlay' field can only deal with up to 256 characters.
Thanks again for an awesome mapping tool! :-)
I extended the max. length of the overlays list field to 4095 characters for now.
This should fix this for quite a while, but a true solution would either be to change the field type from CharField to TextField (which would require a bit more testing), or to create a properly normalized setup using two tables with a 1:n relationship between them
Cool, thanks Hartmut!