#NEWLINE# @ register . filter #NEWLINE# def has_rated( user , obj ) : #NEWLINE# #INDENT# '\n    Returns whether or not the user has rated the given object\n    ' #NEWLINE# return ( rating_score ( obj , user ) is not None )