Code cleanup.

This commit is contained in:
Josh Washburne 2018-03-28 12:41:11 -04:00
parent 850b3a5211
commit def413a74f

View file

@ -18,9 +18,9 @@ class PublishedQuerySet(models.QuerySet):
"""
def published(self):
results = self.filter(
models.Q(published_date__isnull=False) &
models.Q(published_date__lte=timezone.now())
)
models.Q(published_date__isnull=False) &
models.Q(published_date__lte=timezone.now())
)
return results