Mercurial > public > sg101
diff forums/admin.py @ 740:3e1905e523be
Django 1.6: get_query_set -> get_queryset, etc.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 29 Dec 2013 12:57:03 -0600 |
parents | ee87ea74d46b |
children |
line wrap: on
line diff
--- a/forums/admin.py Thu Dec 26 13:32:23 2013 -0600 +++ b/forums/admin.py Sun Dec 29 12:57:03 2013 -0600 @@ -61,7 +61,7 @@ ordering = ('-creation_date', ) save_on_top = True - def queryset(self, request): + def get_queryset(self, request): return Post.objects.select_related('user') # override save_model() to update the search index