4đź‘Ť
âś…
Time to sort out all the “cleaned_data bits”, since that’s how you access the field values.
if not picture.objects.filter(id=form.cleaned_data['ordered_picture']).exists():
Source:stackexchange.com