Closed pmalmgren closed 7 years ago
Hi, I'm going through trying to upgrade our app to Django 1.11 and came across the same bug. What I did was override the ClearableFileInput __init__
method to check the Django version before setting those attributes. I forked the branch, which you can clone from my repo if you'd like. I've created a pull request for my fix, too.
I've now provided an alternate fix, because I couldn't decide which way was better. Here's the branch on my fork with the other method of fixing it where I used a try/except statement instead of calling django.get_version()
and added some @property
and setter methods for the removed fields. I figure this might provide better compatibility.
@maddencs I hope your fix will get merged in but it looks like project maintainer isn't here. Ilya @un1t please let us know if you're still supporting this project or should we fork it.
Hi, guys! Sorry for not responding so long. If you interested I may give you permission for this repo and pipy also.
@maddencs, would you like to maintain this project?
@un1t let's wait for @maddencs, if he won't take it, I'd like to maintain this project.
Good morning. I'll maintain the project. I'm not going anywhere. :) Plus, my coworker has some improvements he'd like to add, as well.
@maddencs, I sent invite. Please check your email.
@maddencs, what is your name on pypi?
Thanks, Ilya. My pypi name is csmadden.
I added you to pypi. Let me know if you need travis or something else.
Thanks, Ilya. Still waking up, but I'll work on this later today.
New version(0.5.1) has been pushed to PyPI. Closing issue. Let me know if you have any further problems. I'll look at the other open issues later this weekend, unless someone else comes by and feels like resolving them...
Hello, thank you for maintaining this package! 😄
I have been upgrading one of my projects to the 1.11 pre-release, and I've noticed that
file_resubmit/widgets.py
is having the following error:Taking a look at the 1.11 release widgets.py, it looks like
template_with_initial
andtemplate_with_clear
have been removed from theClearableFileInput
class.