Commits

Esteban Feldman  committed 65423b0

pass use_zemanta to processor

  • Participants
  • Parent commits e832d88

Comments (0)

Files changed (1)

File tagged/__init__.py

     fields = registry[sender._meta.object_name]
     processor = TAGGED_DEFAULT_PROCESSOR
     processor = processor()
+    use_zemanta = TAGGED_USE_ZEMANTA
     
     for fieldname in fields:
         md5_fieldname = '_tagged_md5_%s' + fieldname
             if not isinstance(field_data, (str, unicode)):
                 raise FieldTypeError("The field %s on %s model is not of"
                     " a string type." % (fieldname, sender._meta.object_name))
-            tags = processor.process(field_data)
+            tags = processor.process(field_data, use_zemanta)
             if tags:
                 instance.tags = tags