#NEWLINE# def get_spammable_or_404( app , model , pk ) : #NEWLINE# #INDENT# if is_spammable ( app , model ) : #NEWLINE# #INDENT# model_class = apps . get_model ( app , model ) #NEWLINE# model_class . meta = model_class . _meta #NEWLINE# instance = get_object_or_404 ( model_class , pk = pk ) #NEWLINE# return ( model_class , instance ) #NEWLINE# #UNINDENT# raise Http404