I created an ndb.model with a duplicated property name
Question: I have an NDB Model class in Python on App Engine.

I just noticed my model's class definition has repeated a property definition.

    
    
    from google.appengine.ext import ndb
    
    class Account(ndb.Model):
        username = ndb.StringProperty()
        email = ndb.StringProperty()
        started = ndb.DateTimeProperty(auto_now=False)
        #...    
        started = ndb.DateTimeProperty(auto_now=False)
    

The bug's been there for a while and never caused an issue while creating
objects and saving or reading the _started_ property.

Now if I delete one of the copies, then the model won't align with what is was
stored in the datastore.

What is the correct way to resolve this issue?


Answer: Just remove `started` and you are all set. Only one (second) property is
actually saved in datastore, you can check this in datastore entities tab

