django-chunked-upload: 'user' field passed to BaseChunkedUpload causes exception

In my code I’ve extended BaseChunkedUpload without adding a user field. If the django request is authenticated, an error is thrown after injecting a user field into the attrs dict here:

https://github.com/juliomalegria/django-chunked-upload/blob/master/chunked_upload/views.py#L184

There should be an extra condition which verifies that a user field exists on self.model before injecting it into attrs.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 26 (2 by maintainers)

Commits related to this issue

Most upvoted comments

@GitRon I have a second thought on the naming of the new repo/package. How about django-chunked-upload-2? Yeah, maybe it’s a bit ugly. 😟

If you create a repo and give me the rights I can do the pypi-setup.

I’ve already forked this project. What rights do you need? Collaborator permissions?