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

reference_order not being padded in database #344

Closed
acholyn opened this issue Aug 23, 2022 · 1 comment
Closed

reference_order not being padded in database #344

acholyn opened this issue Aug 23, 2022 · 1 comment

Comments

@acholyn
Copy link
Collaborator

acholyn commented Aug 23, 2022

reference_order (for original texts) does not seem to undergo the clean_reference_order function to pad the numbers such that 10.17 would be stored as 00010.00017 in the database.

@tcouch
Copy link
Collaborator

tcouch commented Sep 2, 2022

I've discovered that explicitly running form._post_clean() during OriginalTextUpdateView's form_valid() method fixes the problem, but _post_clean should have been triggered when the form.is_valid property is checked.

closing, but opening #348 to investigate why this is necessary

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

No branches or pull requests

2 participants