For simplest scenario you can compare objects field by field e.g.
from django.contrib.auth.models import User
def compare(user1, user2):
for field in user1._meta.fields:
val1 = getattr(user1, field.name)
val2 = getattr(user2, field.name)
if val1 != val2:
print "%s differ '%s' != '%s'"%(field.name, val1, val2)
break
compare(User(username="anurag"), User(username="uniyal"))
output:
username differ 'anurag' != 'uniyal'
You can later on improve it if you need to further compare foerign keys etc
and i think you are aware that in your example clone_me
is not actually a clone of me
, it is me