comparison downloads/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 15dbe0ccda95
children a5ebc74dc3f3
comparison
equal deleted inserted replaced
739:fb2877dd6182 740:3e1905e523be
41 return os.path.join(*parts) 41 return os.path.join(*parts)
42 42
43 43
44 class PublicDownloadManager(models.Manager): 44 class PublicDownloadManager(models.Manager):
45 """The manager for all public downloads.""" 45 """The manager for all public downloads."""
46 def get_query_set(self): 46 def get_queryset(self):
47 return super(PublicDownloadManager, self).get_query_set().filter( 47 return super(PublicDownloadManager, self).get_queryset().filter(
48 is_public=True).select_related() 48 is_public=True).select_related()
49 49
50 50
51 class DownloadBase(models.Model): 51 class DownloadBase(models.Model):
52 """Abstract model to collect common download fields.""" 52 """Abstract model to collect common download fields."""