~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to news/managers.py

  • Committer: franku
  • Date: 2016-07-02 12:38:06 UTC
  • mfrom: (404.2.56 widelands)
  • Revision ID: somal@arcor.de-20160702123806-q69u3d48s1prrxds
merged the django1_8 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    """Returns published posts that are not in the future."""
7
7
    
8
8
    def published(self):
9
 
        return self.get_query_set().filter(status__gte=2, publish__lte=datetime.datetime.now())
 
 
b'\\ No newline at end of file'
 
9
        return self.get_queryset().filter(status__gte=2, publish__lte=datetime.datetime.now())
 
 
b'\\ No newline at end of file'