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.

Not compatible with Django 2.1

See original GitHub issue

I did a basic install and added a PlainLocationField to my model, and now the admin crashes with:

TypeError: render() got an unexpected keyword argument 'renderer'

It seems on the Django side it is calling:

widget.render(
            name=self.html_initial_name if only_initial else self.html_name,
            value=self.value(),
            attrs=attrs,
            renderer=self.form.renderer,
        )

But the LocationWidget doesn’t accept renderer as a keyword argument.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
carlmjohnsoncommented, Aug 1, 2018

https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-2-1

2.1: Support for Widget.render() methods without the renderer argument will be removed.

0reactions
carlmjohnsoncommented, Oct 9, 2018

Looks like we submitted dueling patches. Mine has wider compatibility. I don’t know if you want that or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django 2.1 release notes
Welcome to Django 2.1! These release notes cover the new features, as well as some backwards incompatible changes you'll want to be aware...
Read more >
python 3.x - Django 3 vs Django 2 - Stack Overflow
django-2.2 is not compatible with django-2.1, although in that case the changes are smaller, as is stated in the Django's release process ...
Read more >
Auth Backends Not Compatible with Django 2.1 #292 - GitHub
Create a file backends.py within the app-dir (mine is named accountdemo after installing with pinax start account accountdemo ) where settings.
Read more >
How to upgrade Django to a newer version
Pay particular attention to backwards incompatible changes to get a clear idea ... to upgrade through each feature release incrementally (2.0 to 2.1...
Read more >
pip install django==2.1.7 not install : Forums - PythonAnywhere
pip install django==2.1.7 not install · pip install django==2.1.7 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020....
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