Git Diff of just one Commit
I was wondering how I can see the change of one git commit, I want to see ONLY the changes of this commit, not compared to any other or alike, found it:
git diff <hash>~ <hash>
. Welcome in git wonderland :).
I was wondering how I can see the change of one git commit, I want to see ONLY the changes of this commit, not compared to any other or alike, found it:
git diff <hash>~ <hash>
. Welcome in git wonderland :).
How can I make a django model read-only? There seems to be no metadata option read_only
or alike in django. Well it's easy to do in the admin, but I am creating a model that serves a DB view, which is, at least in MariaDB not writable. So I want to throw an error when someone tries to update data in the view.