Anonymous avatar Anonymous committed e594e9d

fix issue spotted by BinarySplit1 on irc.

Comments (0)

Files changed (1)

couchdbkit/schema/base.py

         """ get dict of dynamic properties """
         if self._dynamic_properties is None:
             return {}
-        return self._dynamic_properties
+        return self._dynamic_properties.copy()
 
     def properties(self):
         """ get dict of defined properties """
-        return self._properties
+        return self._properties.copy()
 
     def all_properties(self):
         """ get all properties. 
         Generally we just need to use keys"""
-        all_properties = self._properties
+        all_properties = self._properties.copy()
         all_properties.update(self.dynamic_properties())
         return all_properties
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.