Skip to content

Commit

Permalink
Fix model-bakery generators import (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
amureki authored Apr 30, 2024
1 parent 773f82a commit d6acc7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions citext/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ class CITextField(CIText, models.TextField):
field.register_lookup(lookup)

field.register_lookup(lookups.IsNull)


from . import baker_generators # noqa
8 changes: 8 additions & 0 deletions tests/testapp/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.apps import AppConfig


class TestAppConfig(AppConfig):
name = "tests.testapp"

def ready(self):
from citext import baker_generators # noqa

1 comment on commit d6acc7b

@gavinwahl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not put the AppConfig in the citext app itself?

Please sign in to comment.