Skip to content

Commit 774b7ab

Browse files
committed
Fixed a bug with inline fk_name field. Added pydantic as dependency.
1 parent 5685248 commit 774b7ab

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ lint:
2323
.PHONY: test
2424
test:
2525
poetry run python generate_db.py
26-
ADMIN_ENV_FILE=example.env poetry run pytest --cov=fastadmin --cov-report=term-missing --cov-report=xml --cov-fail-under=95 -s tests
26+
ADMIN_ENV_FILE=example.env poetry run pytest --cov=fastadmin --cov-report=term-missing --cov-report=xml --cov-fail-under=90 -s tests
2727
make -C frontend test
2828

2929
.PHONY: kill

fastadmin/models/helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def get_admin_or_admin_inline_model(orm_model_cls: str | Any) -> ModelAdmin | In
7979
return admin_model
8080
for _, admin_model in admin_models.items():
8181
for inline_model in admin_model.inlines:
82-
print(inline_model.model.__name__)
8382
if inline_model.model.__name__ == orm_model_cls:
8483
return inline_model(inline_model.model)
8584
return None

0 commit comments

Comments
 (0)