Primary key value while making a record #404
-
I have a model User wherein the User.id is the primary field. While making a new entry into the db using the /admin route it doesn't give me an option to enter the id. Due to this any other entry I make will be duplicate. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So if I understand correctly you want to enter the PK value in the create page, right? |
Beta Was this translation helpful? Give feedback.
So if I understand correctly you want to enter the PK value in the create page, right?
If that is the case, I think you can use form_include_pk:
https://aminalaee.dev/sqladmin/configurations/