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

db_table isn't read from Meta class #7

Closed
peterbe opened this issue Mar 20, 2011 · 2 comments
Closed

db_table isn't read from Meta class #7

peterbe opened this issue Mar 20, 2011 · 2 comments

Comments

@peterbe
Copy link

peterbe commented Mar 20, 2011

If I do something like this:

    class User(peewee.Model):
         email = peewee.CharField()
         class Meta:
             db_table = 'users'

That doesn't get picked up. It's because none such extra arguments are actually used when creating the _meta attribute. See here: https://github.com/coleifer/peewee/blob/master/peewee.py#L1098

@coleifer
Copy link
Owner

cool, pushed a testcase indicating failure, working on fix

@coleifer
Copy link
Owner

Fix pushed in: 981c291

I'm looking at scrapping the whole Meta thing as a way of munging settings because the whole thing feels fragile and janky. May be an API update coming in the next couple days, but this should work for you.

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

2 participants