Hi, all!

This code:

c = Cellbook.objects.get(id = 4767)
c_pb = c.toProtoBuf(Contact())
print c_pb

print:
phone: "79529603429"
name: "Komkov Alexander"
comment: "\2043\2074\2075\2070\2107\2072\2060"

After this I'm write:

c_pb = c_pb.ParseFromString(c_pb.SerializeToString())
print c_pb

and geting:
None

What is this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to