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

Export of Spec_Items Hold Empty Tables #76

Open
pasetti opened this issue Mar 20, 2022 · 1 comment
Open

Export of Spec_Items Hold Empty Tables #76

pasetti opened this issue Mar 20, 2022 · 1 comment
Assignees

Comments

@pasetti
Copy link
Contributor

pasetti commented Mar 20, 2022

When I look at a project which has been exported and then re-imported, I see that the s_data field of the spec_items is set equal to "{}" (with the quotation marks). The correct value should be: {}. This confuses the list_spec_item template which interprets the entry as a non-empty table and displays it.

@pasetti pasetti self-assigned this Mar 20, 2022
@pasetti
Copy link
Contributor Author

pasetti commented Mar 27, 2022

While looking at this issue, I realized that if the user leaves the s_data field empty, there is an exception. I have added a check for this purpose in the clean_s_data method in forms.py.

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

1 participant