Code cleanup.
This commit is contained in:
parent
850b3a5211
commit
def413a74f
1 changed files with 3 additions and 3 deletions
|
@ -18,9 +18,9 @@ class PublishedQuerySet(models.QuerySet):
|
||||||
"""
|
"""
|
||||||
def published(self):
|
def published(self):
|
||||||
results = self.filter(
|
results = self.filter(
|
||||||
models.Q(published_date__isnull=False) &
|
models.Q(published_date__isnull=False) &
|
||||||
models.Q(published_date__lte=timezone.now())
|
models.Q(published_date__lte=timezone.now())
|
||||||
)
|
)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue