Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option to change labels and help_text #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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