def widget_activity(request):
 activity_data = dynamic_activity_data(request)
 return HttpResponse(json.dumps(activity_data), content_type=u'application/json')

def widget_activity ( request ) : activity_data = dynamic_activity_data ( request ) return HttpResponse ( json . dumps ( activity_data ) , content_type = u'application/json' )
return json data for the admin activity widget .