-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot merge models with subclassed ImageField or FileField: "file not sent" error #95
Labels
Comments
Note to self: it's not limited to Grappelli, fails without it too. |
The error occurs on this line, FileFields also affected https://github.com/django/django/blob/d3d12fc11da56e4ea8af37a22a9a0aa6579ab2d5/django/forms/forms.py#L405 in |
int-ua
changed the title
Cannot merge models with subclassed ImageField: "file not sent" error
Cannot merge models with subclassed ImageField or FileField: "file not sent" error
Mar 31, 2017
I can imagine two possible workarounds:
|
saxix
added a commit
that referenced
this issue
Apr 1, 2017
…inactions into int-ua-feature/issue_95 * 'feature/issue_95' of git://github.com/int-ua/django-adminactions: Trying to add tests for #95
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a model that I want to merge have a field that is not an original ImageFIeld, but was subclassed from it, for example:
then default MergeForm stops working if resulting instance contains a link in this field. Is it a bug? Can I somehow subclass MergeForm to state which field needs to be just copied instead of trying to upload an image?
It's an old project with
django-thumbs
, in case it can help.The text was updated successfully, but these errors were encountered: