Skip to content

Add support for Django 1.11 and 2.x#9

Open
Javierb wants to merge 1 commit into
ExoticObjects:masterfrom
Javierb:django-1-11-and-2-x-support
Open

Add support for Django 1.11 and 2.x#9
Javierb wants to merge 1 commit into
ExoticObjects:masterfrom
Javierb:django-1-11-and-2-x-support

Conversation

@Javierb

@Javierb Javierb commented Apr 25, 2018

Copy link
Copy Markdown

Updated the render choices parameter to renderer as per the base class "Widget", otherwise "AttributeError: 'tuple' object has no attribute 'render'" is raised.

In the Django documentation is stated that support for subclasses that don’t accept the renderer parameter will be removed in Django 2.1.

@unformatt

Copy link
Copy Markdown
Collaborator

Does removal of choices break this for versions < 1.11?

@Javierb

Javierb commented Apr 27, 2018

Copy link
Copy Markdown
Author

Haven't tested in older versions. Do you really want to support un-supported versions of Django?

@unformatt

Copy link
Copy Markdown
Collaborator

Since this module is 4 years old, it's in use in older systems. If an important bug is fixed in this module, people most likely don't want to go through a django upgrade process to fix a bug in a small module.

@josefkorbel

Copy link
Copy Markdown

Can we merge this? Im using django 2 and it is not working because of Attribute error regarding renderer..

@unformatt

Copy link
Copy Markdown
Collaborator

@josefkorbel If you're using pip, you can install directly from the branch: https://github.com/Javierb/django-better-filter-widget/tree/django-1-11-and-2-x-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants