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

Provide a way to migrate from an auto-generating form, to an actual form declaration. #2

Open
kezabelle opened this issue Aug 19, 2015 · 0 comments

Comments

@kezabelle
Copy link
Owner

given:

{'a': 1, 'b': '2'}

allow the resulting form instance to be printed to stdout as:

class MyForm(Form):
    a = fields.IntegerField()
    b = fields.CharField()

either as a method on the form, or maybe a management command.

kezabelle added a commit that referenced this issue Aug 20, 2015
…nto a form string, under the assumption that dict -> generated form -> form needs custom cleaning -> becomes import string instead of dict.
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

No branches or pull requests

1 participant