#NEWLINE# def get_user( self , request ) : #NEWLINE# #INDENT# '\n        Get user of a request.\n\n        Parameters\n        ----------\n        request : rest_framework.request.Request\n            Object representing the request.\n\n        Returns\n        -------\n        geokey.users.models.User\n            User of a request.\n        ' #NEWLINE# user = request . user #NEWLINE# if user . is_anonymous ( ) : #NEWLINE# #INDENT# user = User . objects . get ( display_name = 'AnonymousUser' ) #NEWLINE# #UNINDENT# return user