Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

SQL escape and add cache function #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zhaoxuan
Copy link

Fix bug: the field name of Model is a key word in mysql
Add a function to cache Model

@zhaoxuan
Copy link
Author

#36

@hit9
Copy link
Owner

hit9 commented Jan 18, 2016

Thanks and, What is the method cache for ?

@@ -955,6 +956,10 @@ def __init__(self, *lst, **dct):
def set_in_db(self, boolean):
self._in_db = boolean

def cache(self):
self._cache = self.copy()
pass
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove the useless pass?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants