raise an base.SerializationError exception with argument string "Non-model object (%s) encountered during serialization",
raise base . SerializationError ( "Non-model object (%s) encountered during serialization" % type ( obj ) )