Skip to content
Discussion options

You must be logged in to vote

You should be able to do:

if not device.pk:

device.pk will only be None if it's a creation.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jeremystretch
Comment options

@domainzero
Comment options

@jonasbela
Comment options

@kkthxbye-code
Comment options

@jonasbela
Comment options

Answer selected by domainzero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants