parent
e02cea2104
commit
81bdf50889
|
@ -713,6 +713,7 @@ class related(function):
|
|||
else:
|
||||
t_data = t_data[self.arg[i]]
|
||||
if type(t_data) == type(objlst[0]):
|
||||
# This should be improved, calling name_get
|
||||
res[data.id] = (t_data.id,t_data.name)
|
||||
else:
|
||||
res[data.id] = t_data
|
||||
|
|
|
@ -552,7 +552,7 @@ class cache(object):
|
|||
|
||||
cache.__caches.append(self)
|
||||
|
||||
@classmethod
|
||||
@classmethod
|
||||
def clean_cache_for_db(cls, dbname):
|
||||
def get_dbname_from_key(key):
|
||||
for e in key:
|
||||
|
|
Loading…
Reference in New Issue