Allow nulls in last_updated field to accurately report the last updated time to users for newly sync teams

This commit is contained in:
Joseph Schorr 2017-02-17 18:36:56 -05:00
parent 8ea3977140
commit 94b07e6de9
2 changed files with 3 additions and 2 deletions

View file

@ -530,7 +530,7 @@ class TeamSync(BaseModel):
team = ForeignKeyField(Team)
transaction_id = CharField()
last_updated = DateTimeField(default=datetime.now, index=True)
last_updated = DateTimeField(null=True, index=True)
service = ForeignKeyField(LoginService)
config = JSONField()