First of all, I'm new to Django, so please be nice with me :D
I'm currently adapting .py files for Django 3 because the files I have are compatible for Django 2. So, some changes have been made for the new version and in a file, it's written :
@wraps(view_func, assigned=available_attrs(view_func))
With the import :
from django.utils.decorators import available_attrs
I searched for an adaptation of available_attrs, and I quickly found that it has been removed for the new version.
And when I launch the code, I have this :
ImportError : cannot import name 'available_attrs' from 'django.utils.decorators'
So I was wondering what should I write instead of available_attrs to make it work ?
PS : Sorry for my bad english