Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/d/j/django-birdland-0.1a1/src/birdland/templatetags/django_tagging_tags.py   django-birdland(Download)
    def render(self, context):
        context[self.context_var] = Tag.objects.usage_for_queryset(Entry.objects.published(), counts=self.counts)
        return ''
 
class TagCloudForEntriesNode(Node):
    def render(self, context):
        context[self.context_var] = \
            TaggedItem.objects.get_by_model(Entry.objects.published(), self.tag.resolve(context))
        return ''
 
        except VariableDoesNotExist:
            return ''
        related_entries = TaggedItem.objects.get_related(entry, Entry.objects.published(), num=self.limit)
        context[self.context_var] = related_entries
        return ''

src/d/j/django-birdland-0.1a1/src/birdland/templatetags/birdland_tags.py   django-birdland(Download)
    def render(self, context):
        qs = Entry.objects.published()
        entry_ids = qs.values_list('id', flat=True)
        count = min(limit, qs.count())
        random_ids = random.sample(entry_ids, count)
    def render(self, context):
        qs = Entry.objects.published()
        context[self.context_var] = qs.dates('publish', 'year')
        return ''
 

src/d/j/django-birdland-0.1a1/src/birdland/sitemaps.py   django-birdland(Download)
    def items(self):
        return Entry.objects.published()
 
    def lastmod(self, obj):
        return obj.publish

src/d/j/django-birdland-0.1a1/src/birdland/feeds.py   django-birdland(Download)
    from tagging.models import Tag, TaggedItem
 
published_entries = Entry.objects.published()
blog_name = settings.BLOG_NAME