def profile_block(request): """ Figure out what forms the user can see and display them """ from dataentry.utils import user_projects context = dict(projects = user_projects(request.user)) return render_to_string("dataentry/profile_block.html", context, context_instance=RequestContext(request))
def data_entry_projects(request): """List of dataentry projects the current user can see.""" return {'dataentry_projects' : user_projects(request.user)}