forked from RyanNoelk/OpenEats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Stops from overwriting rating if no value is set When PATCH-ing the photo data there is no rating set and so the value gets set to the default 0. This isn't right, so let's let the ORM set the value to 0 when creating a recipe and otherwise leave it to whaveter it was before when updating if no rating is provided. * Checks to make sure we're uploading an image When editing a recipe that already has a photo the data.photo field is populated with the URL of the image. If we're actually uploading an image it'll be a "File" object instead. * Limits rating value when creating recipes
- Loading branch information
Showing
3 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters