You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If there is a field that has a min or max size in a database model, there will be HTML forms that modify this field. A constant in the model should be used for both the SQLAlchemy column and the WTForm's validator.
For example, this display name field already has gotten out of sync (field size of 80 in the model, 100 in the form).
The text was updated successfully, but these errors were encountered:
brassy-endomorph
changed the title
Validators in forms should pull from contants in their associated models
Validators in forms should pull from constants in their associated models
Sep 11, 2024
Is your feature request related to a problem? Please describe.
If there is a field that has a min or max size in a database model, there will be HTML forms that modify this field. A constant in the model should be used for both the SQLAlchemy column and the WTForm's validator.
For example, this display name field already has gotten out of sync (field size of 80 in the model, 100 in the form).
hushline/hushline/model.py
Lines 31 to 36 in bf3124b
hushline/hushline/settings.py
Lines 139 to 140 in bf3124b
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: