fix: don't notify creation for fields subscription
This commit is contained in:
		| @ -150,6 +150,9 @@ def send_notification(sender, instance, **kwargs): | ||||
|                 # I may have configured to send the subscription to a foreign key | ||||
|                 if subscription.field is not None and len(subscription.field) > 1: | ||||
|                     try: | ||||
|                         if kwargs.get("created"): | ||||
|                             continue | ||||
|  | ||||
|                         instance = getattr(instance, subscription.field, instance) | ||||
|  | ||||
|                         # don't send notifications for foreign resources | ||||
|  | ||||
		Reference in New Issue
	
	Block a user