Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting many overlays causes a form validation error in MyOSMatic #128

Open
danielhjames opened this issue Jan 22, 2024 · 2 comments
Open

Comments

@danielhjames
Copy link

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

@hholzgra
Copy link
Owner

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

@danielhjames
Copy link
Author

Cool, thanks Hartmut!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants