Fix filtered_members models updates

This commit is contained in:
miruka
2020-10-30 01:21:18 -04:00
parent 055b68126a
commit b38fbc6d9b
2 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
# Copyright Mirage authors & contributors <https://github.com/mirukana/mirage>
# SPDX-License-Identifier: LGPL-3.0-or-later
from copy import copy
from typing import TYPE_CHECKING, Any, Dict, Optional
from . import SyncId
@@ -40,7 +41,7 @@ class ModelProxy(Model):
they should be converted to a same `ModelItem`
subclass by overriding this function.
"""
return item
return copy(item)
def source_item_set(