def publish(self, all_published=None):
    'publish all models in this queryset'
    if (all_published is None):
        all_published = NestedSet()
    for p in self:
        p.publish(all_published=all_published)
publish all models in this queryset
def publish(self, all_published=None):
    
    if (all_published is None):
        all_published = NestedSet()
    for p in self:
        p.publish(all_published=all_published)