Commits

Ionel Maries Cristian committed e5fd113

Implemented get_db_prep_lookup (raises TypeError).

Comments (0)

Files changed (1)

dcfields/cachedmtmfield.py

 
     def get_prep_lookup(self, lookup_type, value):
         raise TypeError("Lookup type %s not supported." % lookup_type)
-
+    
+    def get_db_prep_lookup(self, lookup_type, value, connection=None, prepared=False):
+        raise TypeError("Lookup type %s not supported." % lookup_type)
+                           
 def _default_cached_value_getter(o):
     return int(o) if isinstance(o, (int, str, unicode)) else o.pk