#NEWLINE# def get_public_or_404( self , pk , user ) : #NEWLINE# #INDENT# if ( user . is_authenticated ( ) and user . st . is_moderator ) : #NEWLINE# #INDENT# return get_object_or_404 ( self . public ( ) . select_related ( 'category__parent' ) , pk = pk ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return get_object_or_404 ( self . visible ( ) . select_related ( 'category__parent' ) , pk = pk )