We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We started used deprecate-fields and saw this warning in our logs.
Turns out django-fsm uses inspect.getmembers which in turn does a getattr(object, key) where the object is the class, not an instance.
inspect.getmembers
getattr(object, key)
Maybe simply catching the None value at the start would be enough.
The text was updated successfully, but these errors were encountered:
This can also happen when you add a deprecated field to an admin.ModelAdmin.list_display
admin.ModelAdmin.list_display
Workaround:
To find the problematic model, you can:
django_deprecate_fields/deprecate_field.py
DeprecatedField.__get__
django/contrib/adminchecks.py
_check_list_display_item
obj
Sorry, something went wrong.
No branches or pull requests
We started used deprecate-fields and saw this warning in our logs.
Turns out django-fsm uses
inspect.getmembers
which in turn does agetattr(object, key)
where the object is the class, not an instance.Maybe simply catching the None value at the start would be enough.
The text was updated successfully, but these errors were encountered: