maposmatic icon indicating copy to clipboard operation
maposmatic copied to clipboard

Selecting many overlays causes a form validation error in MyOSMatic

Open danielhjames opened this issue 1 year ago • 2 comments

myosmatic_too_many_overlays_bug

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! :-)

danielhjames avatar Jan 22 '24 16:01 danielhjames

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

hholzgra avatar Jul 28 '24 08:07 hholzgra

Cool, thanks Hartmut!

danielhjames avatar Jul 29 '24 08:07 danielhjames