Testez si l'instance dans QuerySet Django
if e in Entry.objects.all():
...
# === OR ===
if Entry.objects.filter(id=e.id).exists():
...
Thankful Teira
if e in Entry.objects.all():
...
# === OR ===
if Entry.objects.filter(id=e.id).exists():
...