Assertion Failed: You must include an 'id' for account in an object passed to 'push' Ember.js v-2.4 : <p>I'm new to Ember and I can't find anywhere a solution to my problem. I have read the questions here in stack and in other ember forums, but none of them seems to work for me.</p>

<p>I'm trying to create a simple signup form. I should note that for the backend I use django.
Here is my code:</p>

<p>Server Response: </p>

<pre><code>[{"username":"user1","password":"123","email":"user1@example.com"},        
{"username":"user2","password":"456","email":"user2@example.com"}]
</code></pre>

<p>Ember Model:</p>

<pre><code>import DS from 'ember-data';

export default DS.Model.extend({
    username: DS.attr(),
    password: DS.attr(), 
    email: DS.attr()
});
</code></pre>

<p>Ember Adapter: 
    import DS from 'ember-data';</p>

<pre><code>export default DS.RESTAdapter.extend({
    host: '/api',
    contentType: 'application/json',
    dataType: 'json',

    headers: {
        username: 'XXXX',
        password: 'XXXX'
   } 
});
</code></pre>

<p>Ember Serializer:</p>

<pre><code>import DS from 'ember-data';

export default DS.JSONSerializer.extend({
    primaryKey: '_id'
});
</code></pre>

<p>Ember Route:
    import Ember from 'ember';</p>

<pre><code>export default Ember.Route.extend({
    model() {
        return this.store.findAll('account');
    }
});
</code></pre>

<p>Ember Controller:</p>

<pre><code>import Ember from 'ember';

export default Ember.Controller.extend({

    actions: {

    signup(){
        console.log('My username is: ', this.get('username'));
        console.log('My password is: ', this.get('password'));
        console.log('My email is: ', this.get('email'));

        var account = this.store.createRecord('account', {
                username: this.get('username'),
                password: this.get('password'),
                email: this.get('email')
        });

        account.save();

    }
    }
});
</code></pre>

<p>With this implementation I get the aforementioned error. Any help would be appreciated. Thank you in advance.</p>
