73043/how-can-i-delete-a-record-in-django-models
I want to delete a particular record. Such as
delete from table_name where id = 1;
How can I do this in a django model?
Hello @kartik,
If you want to delete one item
wishlist = Wishlist.objects.get(id = 20) wishlist.delete()
If you want to delete all items in Wishlist for example
Wishlist.objects.all().delete()
Hope it is helpful!
Thank You!
Hey @Starsarwar You have two different codes, they ...READ MORE
yes, you can use "os.rename" for that. ...READ MORE
You can try the below code which ...READ MORE
Actually in later versions of pandas this ...READ MORE
Hope this will help you...Python Tutorial READ MORE
Hi, there is only that way and ...READ MORE
Hi, good question. There is a module meant ...READ MORE
Hi all, with regard to the above ...READ MORE
Hello @kartik, You can just show both forms ...READ MORE
Hello kartik, The variation of the context processor ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.