def tracking_open(request, identifier):
if request.method == 'GET':
mail = get_mail_by_identifier(identifier, must_raise=False)
if mail:
create_track_record.apply_async(kwargs={
'identifier': identifier,
'kind': 'read', 'properties': {'source': 'pixel'}})
return HttpResponse(TRACKER_PIXEL, content_type='image/gif')
return HttpResponseNotAllowed(permitted_methods=['GET'])
评论列表
文章目录