<s> from django . shortcuts import get_object_or_404 <EOL> from django . views . generic import list_detail <EOL> from basic . people . models import * <EOL> def person_type_detail ( request , slug , ** kwargs ) : <EOL> return list_detail . object_detail ( <EOL> request , <EOL> queryset = PersonType . objects . all ( ) , <EOL> slug = slug , <EOL> ** kwargs <EOL> ) <EOL> person_type_detail . __doc__ = list_detail . object_detail . __doc__ <EOL> def person_type_list ( request , paginate_by = <NUM_LIT:20> , ** kwargs ) : <EOL> return list_detail . object_list ( <EOL> request , <EOL> queryset = PersonType . objects . all ( ) , <EOL> paginate_by = paginate_by , <EOL> ** kwargs <EOL> ) <EOL> person_type_list . __doc__ = list_detail . object_list . __doc__ <EOL> def person_detail ( request , slug , ** kwargs ) : <EOL> return list_detail . object_detail ( <EOL> request , <EOL> queryset = Person . objects . all ( ) , <EOL> slug = slug , <EOL> ** kwargs <EOL> ) <EOL> person_detail . __doc__ = list_detail . object_detail . __doc__ <EOL> def person_list ( request , paginate_by = <NUM_LIT:20> , ** kwargs ) : <EOL> return list_detail . object_list ( <EOL> request , <EOL> queryset = Person . objects . all ( ) , <EOL> paginate_by = paginate_by , <EOL> ** kwargs <EOL> ) <EOL> person_list . __doc__ = list_detail . object_list . __doc__ <EOL> def person_quote_list ( request , slug , template_name = '<STR_LIT>' , paginate_by = <NUM_LIT:20> , ** kwargs ) : <EOL> person = get_object_or_404 ( Person , slug__iexact = slug ) <EOL> return list_detail . object_list ( <EOL> request , <EOL> queryset = person . quote_set . all ( ) , <EOL> paginate_by = paginate_by , <EOL> template_name = template_name , <EOL> extra_context = { '<STR_LIT>' : person } , <EOL> ** kwargs <EOL> ) <EOL> person_quote_list . __doc__ = list_detail . object_list . __doc__ <EOL> def quote_detail ( request , quote_id , template_name = '<STR_LIT>' , ** kwargs ) : <EOL> return list_detail . object_detail ( <EOL> request , <EOL> queryset = Quote . objects . all ( ) , <EOL> object_id = quote_id , <EOL> ** kwargs <EOL> ) <EOL> quote_detail . __doc__ = list_detail . object_detail . __doc__ </s>
