Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Self.pk on Model.save() method #135

Open
gabn88 opened this issue May 8, 2017 · 0 comments
Open

Self.pk on Model.save() method #135

gabn88 opened this issue May 8, 2017 · 0 comments

Comments

@gabn88
Copy link

gabn88 commented May 8, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant