These are chat archives for allegro/ralph

31st
Oct 2017
Nick Li
@nickliqian
Oct 31 2017 02:27
When I want to filter object ForeignKey field, how to change the name show in page?because it just show name 'base object'.Thanks!
Nick Li
@nickliqian
Oct 31 2017 02:50
I tried inherit class TreeRelatedAutocompleteFilterWithDescendants and change the class attribute title, but it looks no work. Then i inherit init way to change self.title, the title changed.But when i finished filter, it had a error.Like: 'BaseObject' object has no attribute ' File "/home/nick/Desktop/ralph/src/ralph/admin/filters.py", line 490, in _get_descendants return root.get_descendants(include_self=True) AttributeError: 'BaseObject' object has no attribute 'get_descendants'