Python: [object Object] showing up on page field
<p>I am developing an angularjs app on google app engine however I have an issue displaying one of my <code>KeyProperty</code> fields <code>client</code>.</p>

<p>This is how the <em>KeyProperty</em> field is displaying (The other non KeyProperty elements are showing up fine);</p>

<p><strong>NB:</strong> Post is <em>200 OK</em></p>

<p><a href="https://i.stack.imgur.com/vsK1i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vsK1i.png" alt="enter image description here"></a></p>

<p><strong>model.py</strong> </p>

<pre><code>class Project(ndb.Model):
    projectID = ndb.IntegerProperty(required=True)
    title = ndb.StringProperty(required=True)
    description = ndb.StringProperty(required=True)
    startAt = ndb.DateTimeProperty(indexed=True)
    endAt = ndb.DateTimeProperty()
    client = ndb.KeyProperty(kind='Client')

class Client(ndb.Model):
    name = ndb.StringProperty()
</code></pre>

<p><strong>home.html element</strong></p>

<pre><code>       &lt;div class="form-group"&gt;
            &lt;label&gt;Client : &lt;/label&gt;
            &lt;input type="text" ng-model="Project.Client" class="form-control"/&gt;
        &lt;/div&gt;
</code></pre>

<p>In <strong>handler.py</strong></p>

<pre><code>def post(self):
    r = json.loads(self.request.body)
    print str(r)

    cl = Client(name=r['Client']).put()
    client_key = cl

    g = Project(projectID=int(r['ProjectID']),
        client=client_key,
        description=r['Description'],
        title=r['Title'],
        startAt=datetime.strptime(r['StartAt'], '%Y-%m-%dT%H:%M:%S.%fZ'),
        endAt=datetime.strptime(r['EndAt'], '%Y-%m-%dT%H:%M:%S.%fZ'))

    project_key = g.put()
</code></pre>

<p><strong>angular</strong></p>

<pre><code>eventClick: function (project) { 
                $scope.showSelected = true;

                var fromDate = moment(project.start).format('DD/MM/YYYY LT');
                var endDate  = moment(project.end).format('DD/MM/YYYY LT');

                $scope.Project = { 
                    ProjectID : project.projectID, 
                    Client : project.client,
                    Title : project.title,
                    Description: project.description,
                    Employees: project.employees,
                    StartAt : fromDate,
                    EndAt : endDate,
                    IsFullDay : false   
                }
                $scope.ShowModal()
            },
</code></pre>

<p>I am still learning my way to handling <em>KeyProperties</em>. Thanks for the help</p>

<p><strong>UPDATE</strong></p>

<p>This is the error I am getting when I type 'qwert' in the Client field;</p>

<p><a href="https://i.stack.imgur.com/PO6FI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PO6FI.png" alt="enter image description here"></a></p>