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

Add kilojoule values to ingredient #568

Closed
rolandgeider opened this issue Dec 3, 2020 · 4 comments · Fixed by #577
Closed

Add kilojoule values to ingredient #568

rolandgeider opened this issue Dec 3, 2020 · 4 comments · Fixed by #577
Milestone

Comments

@rolandgeider
Copy link
Member

While the ingredients store the energy in kcal, it would be nice to also show the value in kilojoule. This can be accomplished easily with a property in the ingredient model.

1 kcal are 4,184 kJ

@JuanFML
Copy link

JuanFML commented Dec 3, 2020

Hi! I am new here could I try to fix this issue?

@rolandgeider
Copy link
Member Author

Hi! Sure, go ahead

@nopinter
Copy link
Contributor

nopinter commented Dec 9, 2020

Hi, my partner, @derekli17, and I are also looking into this!

@JuanFML
Copy link

JuanFML commented Dec 9, 2020

Hi! Sure go ahead I am a little bit stuck with creating the property in wger\nutrition\models.py, although I got to edit the view in \wger\nutrition\templates\ingredient\view.html. If I can help you let me know. Also if you could help me @rolandgeider with creating the property I would appreciate it.

rolandgeider added a commit that referenced this issue Dec 15, 2020
Added kilojoules property to ingredient model (Issue #568)
@rolandgeider rolandgeider added this to the 2.0 milestone Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants