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

More descriptive docs #5

Open
nmundar opened this issue Aug 28, 2012 · 0 comments
Open

More descriptive docs #5

nmundar opened this issue Aug 28, 2012 · 0 comments

Comments

@nmundar
Copy link
Member

nmundar commented Aug 28, 2012

Maybe it would be clearer and cleaner if field name parameter is not named 'field' in schema.add_field usage example:

class MyModel(DynamicModel):
    name = models.CharField(max_length=100)  # regular field

schema.add_field(name='field', type='CharField')

I recommend something more descriptive like age to make usage more obvious.

schema.add_field(name='age', type='IntegerField')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant