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

BUG: Update Default recipe picture #27

Open
SandraBergstrom opened this issue Apr 28, 2023 · 1 comment
Open

BUG: Update Default recipe picture #27

SandraBergstrom opened this issue Apr 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@SandraBergstrom
Copy link
Owner

When trying to update a recipe with an uploade picture instead of the default placeholder, it will not update.

@SandraBergstrom SandraBergstrom added the bug Something isn't working label Apr 28, 2023
@SandraBergstrom
Copy link
Owner Author

When fixing #25 I instead created this bug. I have now removed the if statment again. I then updated the recipe model and removed the placholder variable and instead added a placeholder image on cloudinary which I directly link to as default in the featured_image field.

Now the following is working fine:

  • Default image is showing if no image is uploaded
  • When updating recipe with an uploaded image the new image is showing instead of the default image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant