You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: django_gcp/storage/fields.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -279,8 +279,8 @@ def on_commit_valid():
279
279
f"Unable to determine field state for {self._get_fieldname(model_instance)}. The most likely cause of this doing an operation (like migration) without setting GCP_STORAGE_OVERRIDE_BLOBFIELD_VALUE=True. Otherwise, please contact the django_gcp developers and describe what you're doing along with this exception stacktrace. Value was: {json.dumps(value)}"
280
280
)
281
281
282
-
# Pop cached DB values so you can re-use an instantiated form after saving it
283
-
self._existing_value={"_cached": new_value}
282
+
# Cache DB values in the instance so you can reuse it without multiple DB queries
0 commit comments