@treeio_login_required
@cache_control(private=True, max_age=31536000)
def contact_view_picture(request, contact_id, response_format='html'):
 response = HttpResponse(content_type='image/png')
 render_identicon((contact_id * 5000)).save(response, 'PNG')
 return response

@ treeio_login_required @ cache_control ( private = True , max_age = 31536000 ) def contact_view_picture ( request , contact_id , response_format = 'html' ) : response = HttpResponse ( content_type = 'image/png' ) render_identicon ( ( contact_id * 5000 ) ) . save ( response , 'PNG' ) return response
contact view picture .