def get(self, *args, **kwargs):
if args or kwargs:<EOL><INDENT>return self.filter(*args, **kwargs).get()<EOL><DEDENT>self._execute_query()<EOL>if len(self._result_cache) == <NUM_LIT:0>:<EOL><INDENT>raise self.model.DoesNotExist<EOL><DEDENT>elif len(self._result_cache) > <NUM_LIT:1>:<EOL><INDENT>raise self.model.MultipleObjectsReturned(<EOL>'<STR_LIT>'.format(len(self._result_cache)))<EOL><DEDENT>else:<EOL><INDENT>return self[<NUM_LIT:0>]<EOL><DEDENT>
Returns a single instance matching this query, optionally with additional filter kwargs.

A DoesNotExistError will be raised if there are no rows matching the query
A MultipleObjectsFoundError will be raised if there is more than one row matching the queyr