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

Fixed the nutrition plan copy bug #1467

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Fixed the nutrition plan copy bug #1467

merged 1 commit into from
Oct 17, 2023

Conversation

JayanthBontha
Copy link
Contributor

Proposed Changes

-Changed .all() to .set_related() , querying efficiently instead of lazyloading.
-Changed item.save() to item_copy.save() to correctly save the new nutrition plan

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Added yourself to AUTHORS.rst

Other questions

  • Do users need to run some commmands in their local instances due to this PR
    (e.g. database migration)?
    No

@rolandgeider
Copy link
Member

Thanks for the PR, will take a look later today! (and you didn't need to close the other one, btw)

@rolandgeider rolandgeider linked an issue Oct 17, 2023 that may be closed by this pull request
@rolandgeider rolandgeider merged commit 7c2e398 into wger-project:master Oct 17, 2023
6 checks passed
@JayanthBontha JayanthBontha deleted the CopyPlanFix branch October 17, 2023 14:26
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

Successfully merging this pull request may close these issues.

Meal copying doesn't work
2 participants