我希望能够存储创建对象的信息?尝试类似以下方式...
def event_submitted(sender,instance,created,**args):
if created:
content_type = ContentType.objects.get(app_label='activity', model='event')
ModerationItem.objects.create(submitted_by= ?????, # what to put here
submitted_remarks=instance.remarks,
activity_content_type=content_type,
activity_object_id=instance.id,
)
signals.post_save.connect(event_submitted , sender = Event)