Entry detail

Django Tagging 0.2 Released

The second public release of Django Tagging is available for download.

Version 0.2 brings:

  • Multi-word tags. Anyone who was waiting for this can thank Jeff Croft for poking me at just the right time.
    • Tags can be either space-delimited or comma-delimited.
    • Double quotes may also be used to identify a multi-word tag, if it needs to contain commas or if you just like double quotes a lot.
    • Comma-delimited tags are triggered by having a non-quoted comma anywhere in your tag input.
    • Unclosed double quotes will be ignored.
  • Querying for unions of tags (tag1 OR tag2 OR tag3) in addition to the existing intersection and single tag lookups.
  • Tag names can now be forced to lowercase before they are saved to the database by adding the appropriate FORCE_LOWERCASE_TAGS setting to your project settings module. This feature defaults to being off.
  • A tagged_object_list generic view for displaying paginated lists of objects for a given model which have a given tag, and optionally - related tags for the model.
  • A new template tag, tag_cloud_for_model.
  • Miscellaneous bug fixes.

This release also includes a significant backwards-incompatible change - the Tag and TaggedItem models no longer explicitly set their database table names using the db_table option. If you're upgrading, you'll have to change the names of your database tables to tagging_tag and tagging_taggeditem or, if that's out of the question for some reason, restore the old db_table options in your copy of Django Tagging.

The next release will focus on making tags easier to work with by allowing you to register your Django models with the tagging application for the addition of custom Managers/instance methods, instead of having to work with TagManager and TaggedItemManager all the time through Tag.objects and TaggedItem.objects respectively.

Posted by jonny on January 12, 2008

Comments

Alex Ezell January 13, 2008 at 12:29 a.m.

Thanks for your work on this Django app. It's been a great timesaver for me. I'm really looking forward the tagged_object_list stuff.

RKN January 13, 2008 at 8:08 a.m.

Great work, especially, when you combine this with tag suggestion functionality as outlined in this post:
http://remysharp.com/2007/12/28/jquery-t...

kevin January 13, 2008 at 3:35 p.m.

this is awesome! thanks.

Jeff Croft January 14, 2008 at 2:51 a.m.

Thank you so much, Jonathan. You have no idea how much the multi-word tagging helps me out -- and I also was really looking forward to the union queries. So awesome. Thanks so much for all your hard work.

For the record, I totally think django-tagging should be included with Django as a contrib app. :)

kevin January 21, 2008 at 12:06 a.m.

any chance django-tagging is going to be able to keep track of what user tagged what content, and added what tag?

slso, where's your contact info? I'd like to email you a question if possible.

You can ping me via my scribesonic.com and I'll reply.

thanks again and great work on this and all your project...are you cooking up a django-tumblog? if so, I was thinking of doing the same so maybe I can help ya out in one way or the other.

cheers, kevin

Comments are currently disabled