Skip to content

Conversation

@michi88
Copy link

@michi88 michi88 commented May 23, 2016

Not sure if anyone is maintaining this but if so and you want to pull this I can add a description to the readme on how to use it.

What you can do is change the label of the json key field.

data = forms.CharField(widget=SplitJSONWidget(
        attrs=attrs,
        key_field_conf_map={'a': {'label': 'Nice label for a', 'help_text': 'some help text for the a field'}})
    )

Pretty useful as this keeps your json keys clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant