Questions tagged [django-taggit]

django-taggit is a reusable Django application designed to making adding tagging to your project easy and fun.

django-taggit works with Django 1.1 and 1.2 (see Known Issues for known issues with older versions of Django), and Python 2.4-2.X.

306 questions
0
votes
1 answer

Suggestion-tags appear on click in input Django

Hello im using Django with Taggit(Selectize) and I would like to give users the option to click on "suggestion-tags" and that they appear in the input field. I wrote some JS its working in the console but not in the template. No tags appear in the…
Marla
  • 101
  • 1
  • 11
0
votes
1 answer

How to grab related post/item using django-taggit?

I'm new in django/python, so please bear with me. I want to create some sort of "Related Post" in django. How I can do that? I'm following this : How to fetch related items when using taggit in django? but dont know how to use/implement it and how…
0
votes
0 answers

Applying Taggit tags within csv and uplaod script

I am trying to uplaod new components into my projects database, It all works fine until i bring my tag field into the mix. Telling me it needs to be a tag instance. So my problem is i need to uplaod components already tagged into the system, using a…
0
votes
1 answer

Django-taggit-templatetags2 Attribute Error

I need help using the slug of tags as a link to all posts containing that tag. Using Django-taggit-templatetags2. 'function' object has no attribute 'filter' tags.html

Tags

{% get_taglist as tags %} {% for tag in tags %} …
Kyle Jez
  • 23
  • 6
0
votes
1 answer

Getting all the tags associated with the parent object using django-taggit

I have models Restaurant & Review. Review has TaggableManager() I have no problem in making tags work for Reviews. But I also want to know all the tags that are associated with the Restaurant object. I can write my own function that iterates…
Sathish
  • 409
  • 8
  • 24
0
votes
1 answer

How to use django-taggit from view file

I want the user to be able to tag his post. So, he would enter words in the text field, and separate them with ",". When he is done, he presses save and all the tags he entered will be saved to that post. I am using django-taggit, but when the user…
P3P5
  • 923
  • 6
  • 15
  • 30
0
votes
1 answer

Tag detail page with Django-taggit

Im trying to create pages for tags on my django blog. I already have a simple index page which displays a list of all used tags, now I want to have individual pages for each tag and on that page I will display all posts marked with that tag. The url…
easy_c0mpany80
  • 327
  • 1
  • 7
  • 18
0
votes
1 answer

Django-taggit tags with whitespace in name?

How can I use tags with whitespace char in their name with django-taggit? For example, "Some simple tag"? Because if I ctrl-c=>ctrl-v some phrase to tags field in my admin panel, on page with this tag i get something like this: Reverse for…
Simple runner
  • 445
  • 6
  • 19
0
votes
1 answer

Django-Taggit validate newly added tags before save

This is how my models look like. I was not able to do the validation by overriding the save method of either of the models. class NotificationListTag(TaggedItemBase): content_object = models.ForeignKey('Mailer') class Mailer(models.Model): …
Mevin Babu
  • 2,405
  • 21
  • 34
0
votes
1 answer

Filtering records with AND requests with django-taggits

I'm trying to find records which have both tags at the same time with the following code: values = s.split(',') query = Q() for item in values: query &= Q(tags__name__iexact=item.strip()) photos =…
Mee
  • 458
  • 1
  • 6
  • 21
0
votes
0 answers

django-taggit add tags form field in DetailView

I'd like to add a single form input field to a DetailView that will append tags to my model. I'm not sure if I need a separate view for that, or I can simply add a form. Using django-bootstrap3, I have the following:
empedocle
  • 1,862
  • 1
  • 14
  • 25
0
votes
1 answer

losing subclass fields when serializing in django?

I see baffling and what seems flatout bad behavior in serializing django objects. For example, I have models: class MyTag(TagBase): user = models.ForeignKey(User) class MyMpttTag(MPTTModel, MyTag): parent = TreeForeignKey('self',…
codyc4321
  • 9,014
  • 22
  • 92
  • 165
0
votes
0 answers

Sending tags via HTTP Post to Django web api endpoint

I am trying to send tags to my web application, using Django Rest Framework and Django Taggit. I tried to adapt the approach from here, but no luck so far. Here is my try: models.py: class Tool(models.Model): name =…
MJP
  • 5,327
  • 6
  • 18
  • 18
0
votes
1 answer

How to fetch related items when using taggit in django?

Using django-taggit, I'd like to fetch related posts which have the same tag(s) as the current post. Here is the views: from taggit.managers import TaggableManager, TaggedItem from taggit.models import Tag def post(request, post_slug): post =…
Jand
  • 2,527
  • 12
  • 36
  • 66
0
votes
1 answer

Django tag filtering issue

I have a problem with my code, I want to filter the tags, to show only my articles who has the a certain tag. here is my code: views.py from article.models import Article def innertag(request, id): context = {} populateContext(request,…
user3742922