Commits

offline committed 14eee34

field bugfix

Comments (0)

Files changed (1)

tsearch2/fields.py

     def db_type(self):
         return 'tsvector'
 
+    def contribute_to_class(self, cls, name):
+        super(VectorField, self).contribute_to_class(cls, name)
+
+        # Make this object the descriptor for field access.
+        setattr(cls, cls._meta.tsvector_field_name, self)
+