'Get all objects that has a location set to this one.
Args:
location (Object): Where to get contents from.
excludeobj (Object or list, optional): One or more objects
to exclude from the match.
Returns:
contents (list): Matching contents, without excludeobj, if given.'

@returns_typeclass_list
def get_contents(self, location, excludeobj=None):

    exclude_restriction = (Q(pk__in=[_GA(obj, 'id') for obj in make_iter(excludeobj)]) if excludeobj else Q())
    return self.filter(db_location=location).exclude(exclude_restriction)
