sync from local backup
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from .models import Message
|
||||
|
||||
|
||||
def create_message(recipient, msg_type, title, content, sender=None, extra_info='', target_link='', target_type='', target_id=None):
|
||||
return Message.objects.create(
|
||||
recipient=recipient,
|
||||
sender=sender,
|
||||
msg_type=msg_type,
|
||||
title=title,
|
||||
content=content,
|
||||
extra_info=extra_info,
|
||||
target_link=target_link,
|
||||
target_type=target_type,
|
||||
target_id=target_id,
|
||||
)
|
||||
Reference in New Issue
Block a user