On May 25, 5:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm trying to write a view to return a list of blog entries associated > with a specific tag (using the django-tagging app).
You can do the following to get a BlogEntry QuerySet for the appropriate entries: TaggedItem.objects.get_by_model(BlogEntry, some_tag) As of the 0.1 release, some_tag can be a Tag instance, a Tag QuerySet, the name of a tag, or the id of a tag. > Can I do this with a generic view? I've managed to use that for > returning a list of all tags. D'oh, why didn't I think of that? Expect to see a generic view for this appearing in SVN sometime soon. Off the top of my head, it should be a simple wrapper around the object_list view. Jonathan. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---