Skip to content

Nutrition: add reference from log to meal #80

@rolandgeider

Description

@rolandgeider

Use case

At the moment the different logs only have a foreign key to the plan and it's not possible to know to which meal they belong (other than the time, but that's error prone). This would also allow to show some statistics about the different meals, etc.

Proposal

Add an optional foreign key from Log to Meal. When a meal is "quick logged" the reference can be set automatically, when the user logs an individual ingredient, present an optional dropdown

Needs some backend changes

#29
wger-project/wger#819

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions