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

v0.20.0 is released as stable instead of beta #1293

Open
slavovthinks opened this issue Apr 27, 2024 · 3 comments
Open

v0.20.0 is released as stable instead of beta #1293

slavovthinks opened this issue Apr 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@slavovthinks
Copy link

Describe the bug
Im migrating to ormar and I was trying to run the examples from the docs but I was getting AttributeError: 'ModelMetaclass' object has no attribute 'ormar_config' as well as AttributeError: 'MyModel' object has no attribute 'ormar_config'. I was unable to figure out what is the problem so I tried lowering the version of ormar which fixed the issue.

I went to GH and I saw that v.0.20.0 was released as a stable version instead of beta.

To Reproduce
Steps to reproduce the behavior:
1. pip install ormar or pip install --upgrade ormar

@slavovthinks slavovthinks added the bug Something isn't working label Apr 27, 2024
@AlexCAPS
Copy link

AlexCAPS commented May 1, 2024

Try to define you model like this

base_ormar_config = ormar.OrmarConfig(
    database=database,
    metadata=sqlalchemy_metadata,
)

class Example(ormar.Model):
    ormar_config = base_ormar_config.copy(tablename="example")
    ...
    # other fields

@kokroo
Copy link

kokroo commented May 11, 2024

Yeah this should definitely be in the beta channel.

@collerek
Copy link
Owner

Hmm I thought it was released as beta, at least that's what I checked during creating of the release, will try to check it out tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants