Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Aug 21, 2023
1 parent 35572c0 commit e50e84c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flask_appbuilder/security/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ class User(Model):
login_count = Column(Integer)
fail_login_count = Column(Integer)
roles = relationship("Role", secondary=assoc_user_role, backref="user")
created_on = Column(DateTime, default=lambda: datetime.datetime.now(), nullable=True)
changed_on = Column(DateTime, default=lambda: datetime.datetime.now(), nullable=True)
created_on = Column(
DateTime, default=lambda: datetime.datetime.now(), nullable=True
)
changed_on = Column(
DateTime, default=lambda: datetime.datetime.now(), nullable=True
)

@declared_attr
def created_by_fk(self):
Expand Down

0 comments on commit e50e84c

Please sign in to comment.