We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, the code makes the assumption that there is a field called "id". I have a model that looks a little like:
class MyModel(Model): pk = Column('id', Integer, primary_key = True) ...
Reason being that I don't like to override python built-ins.
The text was updated successfully, but these errors were encountered:
I want to add a new parameter 'sqlalchemy_mptt_pk_name' in sqlalchemy_mptt v0.0.6 I think this will solve your problem. For example:
class MPTTPages(BasePages, Base): __tablename__ = "mptt_pages" pk = Column('id', Integer, primary_key=True) sqlalchemy_mptt_pk_name = 'pk'
'id' will default
Sorry, something went wrong.
f59712e
see example in tests https://github.com/ITCase/sqlalchemy_mptt/blob/master/sqlalchemy_mptt/tests.py#L29
uralbash
No branches or pull requests
Currently, the code makes the assumption that there is a field called "id". I have a model that looks a little like:
Reason being that I don't like to override python built-ins.
The text was updated successfully, but these errors were encountered: