'Add the list of serializable attributes `key_list` to the serializer\'s
view dictionary under the key `view_name`.
If `include_keys_from` is a proper view name, extend `key_list` by
the list in that view.'

def add_view(self, view_name, key_list, include_keys_from=None):

    key_list = list(set((key_list + self.views.get(include_keys_from, []))))
    self.views[view_name] = key_list
    self.serializable_keyset.update(key_list)
    return key_list
