question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

integration with taggit

See original GitHub issue

Is an integration with django-taggit ( http://pypi.python.org/pypi/django-taggit ) possible?

Actually tryng to translate a django.taggit field (TaggableManager type) it raises error like this:

django.core.exceptions.ImproperlyConfigured: TaggableManager is not supported by modeltranslation.

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zlorfcommented, Jan 22, 2014

I’ve tried and and tags field have shown out-of-the-box on the admin page (Django 1.5):

class TagTest(models.Model):
    name = models.CharField(max_length=30)
    tags = TaggableManager()

...

admin.site.register(TagTest, TranslationAdmin

...

class TagTO(TranslationOptions):
    fields = ('name',)
translator.register(TagTest, TagTO)

import taggit.models
class TaggitTranslations(TranslationOptions):
    fields = ('name',)
translator.register(taggit.models.Tag, TaggitTranslations)

Please note, that there will be only one field for tags in the admin. Then you need to translate tags in another admin section. Then tags will be displayed localized on the site:

>>> from django.utils.translation import override
>>> obj = TagTest.objects.all()[0]
>>> print obj.tags.all()
[<Tag: tag1>, <Tag: cat>]
>>> with override('de'):
>>>     print obj.tags.all()
[<Tag: tag2>, <Tag: katze>]
0reactions
sunjoomooncommented, Mar 9, 2014

So, what i did was to change slug, url from the database itself. And so did i do slug translation but again 404 error. It seems it is using name as slug as all slugs are in English for all translations. But when i click a translated tag, the slug is not what the slug is but the tag name is. I know it does not make sense… Will keep searching for the way out. Cheers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

External Applications — django-taggit 1.3.0 documentation
django-taggit-anywhere: Simpler approach to tagging with taggit . Additionally this project provides easy-to-use integration with django-taggit-helpers and ...
Read more >
Django taggit integration with frontend (auto-complete and ...
I'm looking for a django app that provides a form-filed with taggit integration and a front end JS tagging library as mentioned here:...
Read more >
django-taggit - Read the Docs
django-taggit works with Django 2.2+ and Python 3.6+. Contents ... to-use integration with django-taggit-helpers and django-taggit-labels.
Read more >
Django-Taggit Tutorial (How To Add Tags In Django) - LinkedIn
`django-taggit works with Django 2.2+ and Python 3.6+. Applications of django-taggit. As a blog category like python, django. No alt text ...
Read more >
django-taggit-anywhere - PyPI
django-taggit with easy. ... pip install django-taggit-anywhere ... INSTALLED_APPS += [ # optional integration with django-taggit-helpers 'taggit_helpers', ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found