from django.db import models

from .querysets import SongQuerySet


class SongManager(models.Manager):
    def get_queryset(self):
        return SongQuerySet(self.model, using=self._db)

    def available(self):
        return self.get_queryset().songs().enabled().published()
