Ejemplo n.º 1
0
def latest_organizations(count=3, img_width=100):
    return latest_context(Organization.objects.all(), count, img_width)
Ejemplo n.º 2
0
def latest_stories(count=3, img_width=100):
    return latest_context(
            Story.objects.exclude(source__relation_type='connected'), 
            count, img_width, '-weight')
Ejemplo n.º 3
0
def latest_projects(count=3, img_width=100):
    return latest_context(Project.objects.all(), count, img_width)