querying many to many fields in django yields an empty query set

After reading the docs a couple times I realized that storing the action of saving an attachment in the views as ‘done’ was stupid.

Instead save the upload

upload.save()

then add the upload

p.files.add(upload)

hope this helps anyway else trying to do multi file uploads that have a relationship with an object.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top