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

conversion to base #58

Closed
mikeford3 opened this issue Aug 26, 2022 · 2 comments
Closed

conversion to base #58

mikeford3 opened this issue Aug 26, 2022 · 2 comments

Comments

@mikeford3
Copy link
Contributor

Hi @CarliJoy

Is the conversion to base units in the database necessary for Pint etc, or could it be made optional?

In some cases I'd like for users to be able to enter data in SI or US units and then have them displayed in update or detail views etc, but using the same units rather than automatic conversion to base.

Thanks

@CarliJoy
Copy link
Owner

Its impossible. You would need to store the information which unit was used somewhere. That is not easily possible with the given django model as you would need two database fields that represent one django model field.

Something I explained already in #38 (comment)

@CarliJoy
Copy link
Owner

Duplicate of #38

Handling everything related there.

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