![]() The foreign key relationship is made explicit by a FOREIGN KEYĬonstraint.By convention, Django appends "_id" to the foreign key field name.Primary keys (IDs) are added automatically. ![]() ( polls) and the lowercase name of the model – question andĬhoice. Table names are automatically generated by combining the name of the app. ![]() TheĮxample above is generated for PostgreSQL.
0 Comments
Leave a Reply. |