title: TypeError: __init__() got an unexpected keyword argument 'parent'
body: <p>I am building an application in Google App Engine with Cloud Datastore backend. </p>
  
  <p>My Model Base class </p>
  
  <p>from google.appengine.ext import ndb</p>
  
  <pre><code>class CFCModel(ndb.Model):
      """
      Base model from which we can inherit other models. Test
      """
      created_date = ndb.DateTimeProperty(auto_now=True)
      modified_date = ndb.DateTimeProperty(auto_now_add=True)
  </code></pre>
  
  <p>The class the model inherits is </p>
  
  <pre><code>class PraiseReport(CFCModel):
      def __init__(self):
          self.username = ndb.StringProperty(repeated=True)
          self.report = ndb.StringProperty(required=True)
          super(PraiseReport, self).__init__()
  </code></pre>
  
  <p>I am now trying to create an object </p>
  
  <pre><code>key = PraiseReportRepository.get_praise_report_key()
  praise_report_model = PraiseReport(parent=key)
  praise_report_model.username = praise_report.username
  praise_report_model.report = praise_report.report
  praise_report_model.put()
  </code></pre>
  
  <p>And I get the following error</p>
  
  <pre><code>ERROR    2016-05-25 09:34:59,882 app.py:1423] Exception on /forms/add_praise_report [GET]
  Traceback (most recent call last):
    File "/Users/vinay/App-Engine/CM-12/server/lib/flask/app.py", line 1817, in wsgi_app
      response = self.full_dispatch_request()
    File "/Users/vinay/App-Engine/CM-12/server/lib/flask/app.py", line 1477, in full_dispatch_request
      rv = self.handle_user_exception(e)
    File "/Users/vinay/App-Engine/CM-12/server/lib/flask/app.py", line 1381, in handle_user_exception
      reraise(exc_type, exc_value, tb)
    File "/Users/vinay/App-Engine/CM-12/server/lib/flask/app.py", line 1475, in full_dispatch_request
      rv = self.dispatch_request()
    File "/Users/vinay/App-Engine/CM-12/server/lib/flask/app.py", line 1461, in dispatch_request
      return self.view_functions[rule.endpoint](**req.view_args)
    File "/Users/vinay/App-Engine/CM-12/cfc/decorators/authentication.py", line 62, in authenticate_and_call_member
      return func(*args, **kwargs)
    File "/Users/vinay/App-Engine/CM-12/Routes/PraiseReportRoutes.py", line 34, in add_report
      repo.add(report)
    File "/Users/vinay/App-Engine/CM-12/cfc/data/PraiseReportRepository.py", line 12, in add
      praise_report_model = PraiseReport(parent=key)
  TypeError: __init__() got an unexpected keyword argument 'parent'
  </code></pre>