Commit f3af00de authored by Rachana's avatar Rachana

Bug fixed in trash.py

parent a755ffeb
......@@ -866,7 +866,7 @@ def get_collection(request, group_id, node_id, stats_flag=False):
collection_list = get_inner_collection(collection_list, obj, gstaff_access)
data = collection_list
updated_data = []
print data
# print data
cache.set(cache_key, json.dumps(data), 60*15)
return HttpResponse(json.dumps(data))
......
......@@ -55,7 +55,7 @@ def trash_resource(request,group_id,node_id):
return HttpResponseRedirect(reverse('page', kwargs={'group_id': group_id}))
# return (eval('page')(request, group_id))
elif "File" in node_obj.member_of_names_list and not "CourseEventGroup" in group_obj.member_of_names_list :
return HttpResponse(json.dumps(group_id)
return HttpResponse(json.dumps(group_id))
# elif get_member_of.name == 'File':
# return(eval('file')(request, group_id))
elif "CourseEventGroup" in group_obj.member_of_names_list:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment