Skip to content

Commit

Permalink
Fix for is_pk (#90)
Browse files Browse the repository at this point in the history
* Fix for is_pk
  • Loading branch information
vsdudakov authored Jan 3, 2025
1 parent a5d9f8d commit 5f89403
Show file tree
Hide file tree
Showing 8 changed files with 493 additions and 443 deletions.
6 changes: 6 additions & 0 deletions docs/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ def read_cls_docstring(cls):

def get_versions():
return [
{
"version": "0.2.19",
"changes": [
"Fix for is_pk for tortoise orm.",
],
},
{
"version": "0.2.18",
"changes": [
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion fastadmin/models/orms/tortoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_model_fields_with_widget_types(
if with_upload is not None and with_upload and not is_upload:
continue

is_pk = getattr(orm_model_field, "index", False)
is_pk = getattr(orm_model_field, "pk", False)
is_immutable = (
is_pk or getattr(orm_model_field, "auto_now", False) or getattr(orm_model_field, "auto_now_add", False)
) and field_name not in self.readonly_fields
Expand Down
13 changes: 13 additions & 0 deletions fastadmin/static/assets/worker-6Z7niv9l.js

Large diffs are not rendered by default.

476 changes: 238 additions & 238 deletions fastadmin/static/index.min.js

Large diffs are not rendered by default.

359 changes: 192 additions & 167 deletions frontend/yarn.lock

Large diffs are not rendered by default.

72 changes: 39 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fastadmin"
version = "0.2.18"
version = "0.2.19"
description = "FastAdmin is an easy-to-use Admin Dashboard App for FastAPI/Flask/Django inspired by Django Admin."
authors = ["Seva D <vsdudakov@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 5f89403

Please sign in to comment.