just tested generic relations for tagging.
to my surprise, there“s no possibility to enter tags (for my blog- 
entries) in the admin interface.

however, i do get additional user permissions:  "can add tagged  
item", ...
did I miss something?

code:

class TaggedItem(models.Model):
     """A tag on an item."""
     tag = models.SlugField()
     content_type = models.ForeignKey(ContentType)
     object_id = models.PositiveIntegerField()
     content_object = models.GenericForeignKey()

     class Meta:
         ordering = ["tag"]

     def __str__(self):
         return self.tag

class Entry(models.Model):
     ...
     tags = models.GenericRelation(TaggedItem)
     ...


thanks,
patrick




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to