fix the question in comment
This commit is contained in:
@ -1080,7 +1080,7 @@ class QuerySet(Generic[T]):
|
|||||||
|
|
||||||
Bulk operations do not send signals.
|
Bulk operations do not send signals.
|
||||||
|
|
||||||
:param objects:list of ormar models
|
:param objects: list of ormar models
|
||||||
:type objects: List[Model]
|
:type objects: List[Model]
|
||||||
:param columns: list of columns to update
|
:param columns: list of columns to update
|
||||||
:type columns: List[str]
|
:type columns: List[str]
|
||||||
@ -1135,8 +1135,7 @@ class QuerySet(Generic[T]):
|
|||||||
for obj in objects:
|
for obj in objects:
|
||||||
obj.set_save_status(True)
|
obj.set_save_status(True)
|
||||||
|
|
||||||
entity = list(objects)[0]
|
await self.__class__.signals.post_bulk_update.send(
|
||||||
await entity.signals.post_bulk_update.send(
|
sender=self.__class__, instances=objects
|
||||||
sender=entity.__class__, instances=objects
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user