[Django]-Django form object has no attribute issue

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():

Leave a comment