Something
public python v1 · immutable def fixdict(old): newdict = {} for key,val in old.iteritems(): # photograph is the file upload field if key == 'photograph': newdict[key] = val else: newdict[key] = val.value return newdict