423S25 / repo2

https://423s25.github.io/repo2/
MIT License
0 stars 1 forks source link

Delete is not working as expected in the localhost #11

Closed feliciajayasaputra closed 3 months ago

feliciajayasaputra commented 3 months ago

Not deleting in the localhost When trying to delete the inventory, it doesn't update in the localhost. The inventory is still there and no deletion happen.

How to Reproduce Create an inventory name "Banana" Click the delete button in the locahost for "Banana" Refresh the page and it shows up that "Banana" is not deleted.

Possible fixes This issue most likely because the methods are not linked with the localhost yet and it didn't read the methods in the views.py.

jthorkildson commented 3 months ago

The uncommented methods in views.py fix this issue, all CRUD operations in the API are interacting with the database.