File diff 8e6ea8ad71bf → f7e45da6ddc8
www/conservancy/apps/podcast/views.py
Show inline comments
 
from models import Podcast, PodcastTag # relative import
 
from django.views.generic.list_detail import object_list
 
from sflc.apps.staff.models import Person
 
from conservancy.apps.staff.models import Person
 
from django.shortcuts import get_object_or_404, render_to_response
 
from datetime import datetime
 

	
 
def OR_filter(field_name, objs):
 
    from django.db.models import Q
 
    return reduce(lambda x, y: x | y,
 
                  [Q(**{field_name: x.id}) for x in objs])
 

	
 
def last_name(person):
 
    return person.formal_name.rpartition(' ')[2]
 

	
 
def custom_index(request, queryset, *args, **kwargs):