amisadmin / fastapi-amis-admin

FastAPI-Amis-Admin is a high-performance, efficient and easily extensible FastAPI admin framework. Inspired by django-admin, and has as many powerful functions as django-admin.
http://docs.amis.work
Apache License 2.0
1.1k stars 161 forks source link

KeyError: 'id'. self.pk: InstrumentedAttribute = self.model.__dict__[self.pk_name] #168

Open isKEKE opened 7 months ago

isKEKE commented 7 months ago

image Here self.pk_name will always be true so its value will always be id, no custom primary key can be used