def METHOD_NAME(self):
    super().METHOD_NAME()
    cleaned_data = cleaned_data = super().METHOD_NAME()
    cleaned_data['config'] = "{{'username': '{username}', 'password': '{password}', 'realm': ''}}".format(
        username=cleaned_data['username'].replace("'", "\'"), password=cleaned_data['password'].replace("'", "\'"))
    self.instance.config = cleaned_data['config']
    return cleaned_data