Created
May 10, 2018 08:44
-
-
Save tade0726/c9d25d41d8a9b3209d0e63597906334c to your computer and use it in GitHub Desktop.
Revisions
-
tade0726 created this gist
May 10, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ ## change pk to united keys, django will add a new id field, original data will become null-value on id column - solution: always add id field as pk - refs: https://docs.djangoproject.com/en/2.0/topics/db/models/#automatic-primary-key-fields