question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'user' field passed to BaseChunkedUpload causes exception

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:26 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jerinpetergeorgecommented, Jun 19, 2019

@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?

0reactions
jerinpetergeorgecommented, Dec 26, 2019

fixed in #55

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to raise error for email field if user is trying to pass just ...
If you use EmailField then it has a built-in validator.
Read more >
A missing field should not cause an exception when trying to ...
Drupal\tmgmt_content\Plugin\tmgmt\Source\ContentEntitySource::doSaveTranslations() throws an exception when there is data for a field tha ...
Read more >
Error: "Data Policy Exception: The following fields are read only
Hi, I created a data policy which makes two (2) true/false fields "read only" if a specific field in the case form is...
Read more >
Insert failed. First exception on row 0; first error
caused by: System.SObjectException: Invalid field npe03__Recurring_Donation__c.id for Opportunity Class.ChatterUpHelper.
Read more >
Failed to parse field of type in document with id ''. - Opster
There are a multitude of reasons why this error can happen, ... to choose one of the many numeric field types because it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found