Changes between Initial Version and Version 1 of Ticket #23616
- Timestamp:
- Oct 8, 2014, 12:41:50 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23616 – Description
initial v1 1 1 I have a model: 2 2 #models.py 3 {{{ 3 4 class TaggedItem(models.Model): 4 5 tag = models.SlugField() … … 10 11 return self.tag 11 12 12 And model with GenericRelation13 # And model with GenericRelation 13 14 class Bookmark(models.Model): 14 15 url = models.URLField() 15 16 tags = GenericRelation(TaggedItem) 16 17 17 18 }}} 18 19 #admin.py 20 {{{ 19 21 class BookmarkAdmin(admin.ModelAdmin): 20 22 list_filter = ('tags__tag') 21 23 22 24 admin.site.register(models.Bookmark, BookmarkAdmin) 23 25 }}} 24 26 It will list all the `tag` in the filter, but when I try to filter it throws error `'GenericRel' object has no attribute 'get_related_field'` 25 27