I often use:
if not self.id:
created=True
else:
created=False
to determine if the instance is newly created or just modified. However by using Versionable, this doesn't work anymore, because it sets the id to an UUID automatically.
It would be nice if this could be fixed.
I often use:
to determine if the instance is newly created or just modified. However by using Versionable, this doesn't work anymore, because it sets the id to an UUID automatically.
It would be nice if this could be fixed.