Browse Source

Bugfix in lodel.leapi.query

Hook names were wrong
Yann Weber 8 years ago
parent
commit
705c8f511c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lodel/leapi/query.py

+ 2
- 2
lodel/leapi/query.py View File

@@ -48,11 +48,11 @@ class LeQuery(object):
48 48
             self._target_class.prepare_datas(datas) #not yet implemented
49 49
         if self._hook_prefix is None:
50 50
             raise NotImplementedError("Abstract method")
51
-        LodelHook.call_hook(self._hook_prefix+'_pre',
51
+        LodelHook.call_hook(self._hook_prefix+'pre',
52 52
                                 self._target_class,
53 53
                                 datas)
54 54
         ret = self._query(datas=datas)
55
-        ret = LodelHook.call_hook(self._hook_prefix+'_post',
55
+        ret = LodelHook.call_hook(self._hook_prefix+'post',
56 56
                                     self._target_class,
57 57
                                     ret)
58 58
         return ret

Loading…
Cancel
Save