@register.inclusion_tag('zinnia/tags/dummy.html')
def get_draft_entries(number=5, template='zinnia/tags/entries_draft.html'):
 return {'template': template, 'entries': Entry.objects.filter(status=DRAFT)[:number]}

@ register . inclusion_tag ( 'zinnia/tags/dummy.html' ) def get_draft_entries ( number = 5 , template = 'zinnia/tags/entries_draft.html' ) : return { 'template' : template , 'entries' : Entry . objects . filter ( status = DRAFT ) [ : number ] }
return the last draft entries .