Changes between Initial Version and Version 1 of Ticket #30543, comment 11
- Timestamp:
- Aug 9, 2019, 10:50:10 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30543, comment 11
initial v1 1 (I found this thread after already finding the commit that caused this problem for me, so this is copied/edited from [https://github.com/django/django/commit/47016adbf54b54143d4cf052eeb29fc72d27e6b1#commitcomment-34636977 my comment there] )1 (I found this thread after already finding the commit that caused this problem for me, so this is copied/edited from [https://github.com/django/django/commit/47016adbf54b54143d4cf052eeb29fc72d27e6b1#commitcomment-34636977 my comment there]. I haven't checked whether this thread's fix works.) 2 2 3 3 While upgrading from Django 1.11 to 2.2, I found this change causes one of our custom field types to fail system checks when used in an admin's list_display. The dev who made the field had overridden contribute_to_class() to assign a descriptor class that raises an AttributeError on __get__() if no instance is supplied, making the field attribute only accessible from instances and not from the class itself.