-3

So can someone help me how can i delete the item in tech with tim django todo app project? I really need this one to understand how delete works and models in django. This is the source code for tech with tim django todo app

k3v1n
  • 381
  • 1
  • 3
  • 8
  • Which item you need to delete ? – Aswath Jul 01 '21 at 04:20
  • 1
    Does this answer your question? [How to delete a record in Django models?](https://stackoverflow.com/questions/3805958/how-to-delete-a-record-in-django-models) – Ezra Jul 01 '21 at 04:27

2 Answers2

1

use below reference

YourModel.objects.filter(id=id).delete()
Kiran
  • 548
  • 6
  • 16
0

You can try the steps outlined here: How to delete a record in Django models?

Namely,

ModelName.objects.filter(id=id).delete()
Ezra
  • 471
  • 3
  • 14