(self, user)
return private
Returns the podcasts that the user has marked as private
Returns the podcasts that the user has marked as private
Returns the podcasts that the user has marked as private
def get_private_podcasts(self, user):
        """Returns the podcasts that the user has marked as private"""
        settings = self.filter(
            user=user, content_type=ContentType.objects.get_for_model(Podcast)
        )

        private = []
        for setting in settings:
            if not setting.get_wksetting(PUBLIC_SUB_PODCAST):
                private.append(setting.content_object)

        return private
def get_private_podcasts ( self , user ) : settings = self . filter ( user = user , content_type = ContentType . objects . get_for_model ( Podcast ) ) private = [ ] for setting in settings : if not setting . get_wksetting ( PUBLIC_SUB_PODCAST ) : private . append ( setting . content_object ) return private