@classmethod
def garbage_collect(cls):
    """
        Deletes all Query records that have no daily hits or editors picks
        """
    extra_filter_kwargs = {'editors_picks__isnull': True} if hasattr(cls,
        'editors_picks') else {}
    cls.objects.filter(daily_hits__isnull=True, **extra_filter_kwargs).delete()
