#NEWLINE# @ admin_required #NEWLINE# @ post_required #NEWLINE# def featured_collection( request ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# pk = int ( request . POST . get ( 'collection' , 0 ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pk = 0 #NEWLINE# #UNINDENT# c = get_object_or_404 ( Collection , pk = pk ) #NEWLINE# return render ( request , 'zadmin/featured_collection.html' , dict ( collection = request ) )