<s> from django . shortcuts import get_object_or_404 <EOL> from cab . models import Language <EOL> from cab . utils import month_object_list , object_list <EOL> def language_list ( request ) : <EOL> return object_list ( <EOL> request , <EOL> queryset = Language . objects . all ( ) , <EOL> paginate_by = <NUM_LIT:20> , <EOL> ) <EOL> def language_detail ( request , slug ) : <EOL> language = get_object_or_404 ( Language , slug = slug ) <EOL> return month_object_list ( <EOL> request , <EOL> queryset = language . snippet_set . all ( ) , <EOL> paginate_by = <NUM_LIT:20> , <EOL> template_name = '<STR_LIT>' , <EOL> extra_context = { '<STR_LIT>' : language } , <EOL> ) </s>
