Skip to content

Commit

Permalink
Update the last update when the record is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanchowdhury committed Sep 6, 2016
1 parent b9c806e commit 4ec1a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tahrir_api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ class Series(DeclarativeBase):
created_on = Column(DateTime, nullable=False,
default=datetime.datetime.utcnow)
last_updated = Column(DateTime, nullable=False,
default=datetime.datetime.utcnow)
default=datetime.datetime.utcnow,
onupdate=datetime.datetime.utcnow)
tags = Column(Unicode(128))
milestone = relationship("Milestone", backref="series")
team_id = Column(Unicode(128), ForeignKey('team.id'), nullable=False)
Expand Down

0 comments on commit 4ec1a66

Please sign in to comment.