Added __repr__ to model instances for prettly logging

Hi, 
Following our conversation on the mailing list, attached is a patch to add pretty printing to model instances. I've fixed it to print all primary keys.
Let me know if this works for you.

Dvir