hello,

i have a question related to the http://code.google.com/p/django-tagging/
code and how to use it in the admin pages. hopefully someone can help
me.

the problem is that the module documentation sugests that i use a text
field in my model to implement tags:

class Link(models.Model):
        ...
        tags = TagField()

or a similar way using setters and getters. this works fine with the
admin interface but it add an extra field to the model. and besides
this field does not get updated when i remove tags.

i would prefer to have a pair of functions that get current tags from
the related tables:

        def _get_tags(self):
            return Tag.objects.get_for_object(self)

        def _set_tags(self, tag_list):
            Tag.objects.update_tags(self, tag_list)

        tags = property(_get_tags, _set_tags)

but i cannot find a way to make the admin interface accept this
property as an editable field. i can make it display the property but
there seems to be no way to edit it.

any suggestions how to make it work without writing a custom admin
application?

thanks
konstantin


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

Reply via email to