开发者

What to use for tagging in Django 1.1

Unless I'm missing something, it seems django-tagging (0.3) doesnt work on Django 1.1.x. I was having issues then search around and it seems to be the general concensious.

What are other people using? Just in case here is all I'm doing.

class Article(models.Model):
    title = models.CharField(max_length=200)
    tags = TagField()

tagging.register(Article)

class ArticleAdmin(admin.ModelAdmin)
    fieldsets = (
        (None, { 'fields': ('title', 'tags',)  }),

admin.site.register(Article, ArticleAdmin)

I have a script that added a bunch of tags and they are in the DB without issue. But if I visit the admin, I get

Tags: [<Tag: []>]

I don'开发者_Go百科t need advanced features. I just want to have an admin field where I can type in tags, to some related searches based on tags not a whole lot else. Thats about it.

Thanks


I coded up this pattern recently using django-batch-select, take a look. Obviously you'll still need to code up the admin side of things but it shouldn't be too difficult.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜