Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
256 B
3
Indexable
# -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone


class MovieManager(models.Manager):

  def active(self, *args, **kwargs):
    return super(MovieManager, self).filter(draft=False).filter(publish__lte=timezone.now())