Commit 549ef5d4 by Don Mitchell

Ensure kvs up-to-date if code accessing it.

parent 62afa23a
...@@ -674,6 +674,8 @@ class XModuleDescriptor(XModuleFields, HTMLSnippet, ResourceTemplates, XBlock): ...@@ -674,6 +674,8 @@ class XModuleDescriptor(XModuleFields, HTMLSnippet, ResourceTemplates, XBlock):
""" """
Use w/ caution. Really intended for use by the persistence layer. Use w/ caution. Really intended for use by the persistence layer.
""" """
# if caller wants kvs, caller's assuming it's up to date; so, decache it
self.save()
return self._model_data._kvs return self._model_data._kvs
# =============================== BUILTIN METHODS ========================== # =============================== BUILTIN METHODS ==========================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment