-
Notifications
You must be signed in to change notification settings - Fork 50
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
bug in saving short title when value is too long for page and section #1244
Comments
…itle-when-value-is-too-long-for-page-and-section Add max length validation to translated fields. Related issue: #1244
|
Ok, I think manually setting |
It seems we need to use
in |
There are maybe other fields affected. |
want to make this test parametrized for the different fields maybe?
|
I created #1250 for the issue. I don't think we need to add a test for this, since this would only test core Django/drf behavior. We (meaning I) learned how overriding serializer fields work. |
Description / Beschreibung
Expected behaviour / Erwartetes Verhalten
Saving a too long name for Short title shows an error eg. "given name is too long"
Could the max length value be passed to the front-end so that the JS can already validate the input while typing?
Steps to reproduce / Schritte zum Reproduzieren
/management/pages/1
or/management/sections/1
Context / Kontext
the RDMO 2.2.2 with MySQL.
Can not reproduce locally with sqlite.
References / Verweise
rdmo/rdmo/questions/models/section.py
Line 92 in 1eadee5
rdmo/rdmo/questions/serializers/v1/section.py
Line 54 in 1eadee5
The text was updated successfully, but these errors were encountered: