Skip to content

Add the option to change labels and help_text#20

Open
michi88 wants to merge 1 commit intoabbasovalex:masterfrom
michi88:key_field_conf_map
Open

Add the option to change labels and help_text#20
michi88 wants to merge 1 commit intoabbasovalex:masterfrom
michi88:key_field_conf_map

Conversation

@michi88
Copy link
Copy Markdown

@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