Skip to content

Commit

Permalink
New conditional created value
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jun 26, 2019
1 parent 0e3f212 commit abdb34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/appier_extras/parts/admin/models/base.py
Expand Up @@ -488,7 +488,7 @@ def pre_create(self):
appier.Model.pre_create(self)

if not hasattr(self, "enabled"): self.enabled = True
self.created = int(time.time())
if not hasattr(self, "created"): self.created = int(time.time())
self.modified = int(time.time())

def pre_update(self):
Expand Down

0 comments on commit abdb34e

Please sign in to comment.