BenKimball11 / ProjectFocus-client

0 stars 0 forks source link

Stretch: Adding images of lots #16

Open BenKimball11 opened 3 years ago

BenKimball11 commented 3 years ago

User Story

As an authenticated user, I would like to upload images of the lots when they are completed.

GIVEN user has successfully completed registration/log in WHEN user is creating or editing a lot AND user selects an image to upload THEN the image is saved as a foreign key on the lot and the photo is reflected on the DOM

To Do Back End:

Ensure the projectFocusapi/models/lot_image.py model is created In postman, ensure the create method of the projectFocusapi/views/lot_image.py viewset handles the saving of the passed string Front End:

On each Lot entry, add upload image button

Now when viewing lots, the image should appear on the top of the dom when looking at lot details