original_docstring: A way to trim down the list of objects by user
docstring: A way to trim down the list of objects by user
docstring_tokens: A way to trim down the list of objects by user
code: def filter_by_user(self, user, **kwargs):
          """A way to trim down the list of objects by user"""
          if user.is_superuser:
              return self.filter(**kwargs)
          kwargs["company"] = user.profile.company
          return self.filter_by_company(**kwargs)
code_tokens: def filter_by_user ( self , user , ** kwargs ) : if user . is_superuser : return self . filter ( ** kwargs ) kwargs [ "company" ] = user . profile . company return self . filter_by_company ( ** kwargs )
short_docstring: A way to trim down the list of objects by user
short_docstring_tokens: A way to trim down the list of objects by user
comment: """A way to trim down the list of objects by user"""