Question : postgres check if item exists in database
Answered by : trained-tuna
# Django: if yourName and yourNumber exist in YourModel then delete all rows
YourModel.objects.filter(name='yourName', numb='yourNumber').delete()
Source : | Last Update : Mon, 13 Sep 21