Fix for #320 TypeError: Model instances without primary key value are unhashable
Merge pull request #321 from mark0978/master

Fix for #320 TypeError: Model instances without primary key value are un...