def _copy_prefix(prefix, base_dict):
 querydict = QueryDict(None, mutable=True)
 for (key, val) in base_dict.iteritems():
  if key.startswith(prefix):
   querydict[key] = val
 return querydict

def _copy_prefix ( prefix , base_dict ) : querydict = QueryDict ( None , mutable = True ) for ( key , val ) in base_dict . iteritems ( ) : if key . startswith ( prefix ) : querydict [ key ] = val return querydict
copy keys starting with prefix .