code: def meaningful_value(self, val, undefined):
          
          if isinstance(val, fields.files.FieldFile):
              return val.name and not (
                  isinstance(undefined, fields.files.FieldFile) and val == undefined)
          return val is not None and val != undefined
docs: Check if val is considered non-empty.