fastadmin 0.2.18__py3-none-any.whl → 0.2.19__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,7 @@ class TortoiseMixin:
62
62
  if with_upload is not None and with_upload and not is_upload:
63
63
  continue
64
64
 
65
- is_pk = getattr(orm_model_field, "index", False)
65
+ is_pk = getattr(orm_model_field, "pk", False)
66
66
  is_immutable = (
67
67
  is_pk or getattr(orm_model_field, "auto_now", False) or getattr(orm_model_field, "auto_now_add", False)
68
68
  ) and field_name not in self.readonly_fields