mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Use pk, not id!
This commit is contained in:
@@ -91,7 +91,7 @@ class CachedDocumentManager(models.Manager):
|
||||
# If we have a error in the ignored error list use the cached doc, otherwise return the new doc
|
||||
if not error or not error in ROLLBACK_ERRORS:
|
||||
doc.save()
|
||||
doc = self.get(id=doc.pk)
|
||||
doc = self.get(pk=doc.pk)
|
||||
|
||||
# If this is user related, write a log instance
|
||||
if params and params.get('userid', None):
|
||||
|
||||
Reference in New Issue
Block a user