~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to django/contrib/comments/feeds.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20081115191533-84v2zyjbmp1074ni
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
            is_removed = False,
29
29
        )
30
30
        if getattr(settings, 'COMMENTS_BANNED_USERS_GROUP', None):
31
 
            where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
 
31
            where = ['user_id NOT IN (SELECT user_id FROM auth_user_groups WHERE group_id = %s)']
32
32
            params = [settings.COMMENTS_BANNED_USERS_GROUP]
33
33
            qs = qs.extra(where=where, params=params)
34
 
        return qs[:40]
 
34
        return qs.order_by('-submit_date')[:40]
35
35
        
36
36
    def item_pubdate(self, item):
37
 
        return item.submit_date
 
 
b'\\ No newline at end of file'
 
37
        return item.submit_date