Home > OS >  get_extra_restriction() missing 1 required positional argument: 'related_alias' error djan
get_extra_restriction() missing 1 required positional argument: 'related_alias' error djan

Time:12-28

I deployed my django site on heroku and when i run my url which uses django taggit in it error shows up. I am using django taggit for meta keys to find related blogs.

CodePudding user response:

If you are using Django 4.0, there was an issue at django-taggit. They have already fixed it, you should try to upgrade your package:

pip install django-taggit --upgrade

If this does not work, you can also try install actual version from git like this:

pip uninstall django-taggit
pip install git https://github.com/jazzband/django-taggit.git@d0833966d357ed1e1b9b1f40c39c1ed99affbf9b

CodePudding user response:

problem was the version of the django. From now i am using Django==3.2.5, and everything works fine.

  • Related