From fd869cceacafdaf2c5865cc525f88357b6a26aad Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 2 Jul 2015 19:00:56 -0400 Subject: [PATCH] Fixed mistake in Model.from_db() example. --- docs/ref/models/instances.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 6af5ae3caa..9fa5318a9f 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -100,7 +100,7 @@ are loaded from the database:: instance._state.adding = False instance._state.db = db # customization to store the original field values on the instance - instance._loaded_values = zip(field_names, values) + instance._loaded_values = dict(zip(field_names, values)) return instance def save(self, *args, **kwargs):