# HG changeset patch # User Marcin Kuzminski # Date 2017-04-12 21:24:48 # Node ID f8c88eae0f2426042a3050c510290b93af066cf5 # Parent da0b6987cae09f9f4e9af5f2e8ec6103cd0a0299 users: last_activity should be null if user haven't performed any actions. diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -514,7 +514,7 @@ class User(Base, BaseModel): lastname = Column("lastname", String(255), nullable=True, unique=None, default=None) _email = Column("email", String(255), nullable=True, unique=None, default=None) last_login = Column("last_login", DateTime(timezone=False), nullable=True, unique=None, default=None) - last_activity = Column('last_activity', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now) + last_activity = Column('last_activity', DateTime(timezone=False), nullable=True, unique=None, default=None) extern_type = Column("extern_type", String(255), nullable=True, unique=None, default=None) extern_name = Column("extern_name", String(255), nullable=True, unique=None, default=None)