Skip to content

Comments

Simple refactoring to allow customization of field/widget as_dict().#16

Open
ikatson wants to merge 1 commit intoWiserTogether:masterfrom
ikatson:overridable-field-class
Open

Simple refactoring to allow customization of field/widget as_dict().#16
ikatson wants to merge 1 commit intoWiserTogether:masterfrom
ikatson:overridable-field-class

Conversation

@ikatson
Copy link

@ikatson ikatson commented May 10, 2014

E.g. my use-case is that ModelChoiceFields sometimes have too many choices, and I don't want to put them into the RemoteForm.as_dict(). There was no other way to do that other modifying the source.
Now it's a lot more flexible, you can subclass the RemoteForm and RemoteField to control the fields and widget classes that are returned.

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