From d6acc7b99c3f52c649b308e3ededb55a7d976668 Mon Sep 17 00:00:00 2001 From: Rust Saiargaliev Date: Tue, 30 Apr 2024 16:06:28 +0200 Subject: [PATCH] Fix model-bakery generators import (#30) To ensure compatibility with https://github.com/model-bakers/model_bakery/releases/tag/1.18.0 --- citext/fields.py | 3 --- tests/testapp/apps.py | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 tests/testapp/apps.py diff --git a/citext/fields.py b/citext/fields.py index b1f3ef1..f82be58 100644 --- a/citext/fields.py +++ b/citext/fields.py @@ -35,6 +35,3 @@ class CITextField(CIText, models.TextField): field.register_lookup(lookup) field.register_lookup(lookups.IsNull) - - -from . import baker_generators # noqa diff --git a/tests/testapp/apps.py b/tests/testapp/apps.py new file mode 100644 index 0000000..d5caa74 --- /dev/null +++ b/tests/testapp/apps.py @@ -0,0 +1,8 @@ +from django.apps import AppConfig + + +class TestAppConfig(AppConfig): + name = "tests.testapp" + + def ready(self): + from citext import baker_generators # noqa