comparison contests/models.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 84aa49497718
comparison
equal deleted inserted replaced
739:fb2877dd6182 740:3e1905e523be
12 class PublicContestManager(models.Manager): 12 class PublicContestManager(models.Manager):
13 """ 13 """
14 The manager for all public contests. 14 The manager for all public contests.
15 15
16 """ 16 """
17 def get_query_set(self): 17 def get_queryset(self):
18 return super(PublicContestManager, self).get_query_set().filter(is_public=True) 18 return super(PublicContestManager, self).get_queryset().filter(is_public=True)
19 19
20 20
21 class Contest(models.Model): 21 class Contest(models.Model):
22 """ 22 """
23 A model to represent contests where users sign up to win something. 23 A model to represent contests where users sign up to win something.