diff options
author | Dan McGee <dan@archlinux.org> | 2013-11-06 20:55:05 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-11-06 20:55:48 -0600 |
commit | d54df175a89385e50193447d02e6842e28c24f7d (patch) | |
tree | b7f83c4703749b51152af272dc74452bfd621a2c | |
parent | 5943f92e4c6d52bec6a1e68ad11970da9b8ad643 (diff) |
Django 1.6 upgrade, deprecation cleanup
PendingDeprecationWarning: `queryset` method should be renamed `get_queryset`
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | packages/admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/admin.py b/packages/admin.py index 820bbb29..4680c755 100644 --- a/packages/admin.py +++ b/packages/admin.py @@ -20,7 +20,7 @@ class FlagRequestAdmin(admin.ModelAdmin): ordering = ('-created',) date_hierarchy = 'created' - def queryset(self, request): + def get_queryset(self, request): qs = super(FlagRequestAdmin, self).queryset(request) return qs.select_related('repo', 'user') @@ -42,7 +42,7 @@ class SignoffSpecificationAdmin(admin.ModelAdmin): ordering = ('-created',) date_hierarchy = 'created' - def queryset(self, request): + def get_queryset(self, request): qs = super(SignoffSpecificationAdmin, self).queryset(request) return qs.select_related('arch', 'repo', 'user') |