-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Crashes when django.contrib.contentypes is not installed #265
Comments
Is there any reason for which this has not been addressed or even commented since 2 years? |
Hey @paduszyk and @adamchainz
And see if that solves your issue. If that is not possible, or not in your interest, this is totally fine. :) Best, |
I am afraid I don’t have time or interest to test this, since I am not actively using Model Bakery. But good work. Don’t stress or worry about timelines in open source! You’re doing good work. @paduszyk ’s comment was outright rude and entitled. |
Thanks for being thoughtful @adamchainz. It' super annoying when people treats OS as regular product when the developers have to maintain themselves on their jobs and work this on their spare time. |
I'm sorry you misunderstood my intentions. To be clear: I respect all of you guys doing a great job for the open-source and the Python/Django community! Peace! ☮️ |
* origin/main: Bump 1.19.0 Fix #483 -- Add Django 5.1 support (#485) Bump 1.18.3 Refs #416 -- Allow combination of GFK and `_fill_optional` (#438) Bump 1.18.2 Update ruff CI syntax (#481) Fix #28 -- allow make_recipe to work with _quantity (#480) Bump 1.18.1 Replace expensive `count()` with cheap `exists()` (#478) Update CI Python version to 3.12 Delete hard action requirement for a changelog Bump 1.18.0 Fix #265 -- drop hard dependency on `contenttypes` framework (#476) Bump GitHub Actions artifacts to v4 (#470) Drop Django 3.2 support (#475) Bump actions/setup-python from 4 to 5 (#466) Drop Django 4.1 support (reached end of life) (#465) Support Django 5.0 (#464)
If
django.contrib.contenttypes
is not installed, Model Bakery fails to run. Model bakery doesn't declare a hard dependency on content types, and it doesn't look like it needs one. It just has some unconditional imports that could be guarded.Expected behavior
Model bakery works.
Actual behavior
It crashes when importing from
contenttypes
:Reproduction Steps
As above.
Versions
Python: 3.9.9
Django: 3.2.9
Model Bakery: 1.3.3
The text was updated successfully, but these errors were encountered: