Hey guys,

I'm looking to create a model method like is_<tag>(), where the tag
can be used to lookup if the object is tagged with a certain ... tag.
Kind of like this:

A blog entry is tagged "personal" and "funny".

>> blog_entry.is_sports()
False
>> blog_entry.is_personal()
True
>> blog_entry.is_whatever()
False

You probably get the point. Could someone perhaps explain how to do it
or point me in the right direction?

Thanks,
Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to