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

Populate added_by field from CreateView

I have extended django-taggit TagBase model to include an added_by field as a ForeignKey to User: class TagBase(models.Model): name = models.CharField(verbose_name=_("Name"), unique=True, max_length=100) slug =…
adder
  • 3,512
  • 1
  • 16
  • 28
0
votes
1 answer

Django-taggit, tag slug is not linking to the correct ListView

I installed django-taggit and django-taggit-templatetags2 and included in all the models that I needed. On the app name blog with model Post the tags work perfect as the code bellow. '''blog/views.py''' def tutorialpage(request): tutorial_list =…
0
votes
0 answers

Automatically find tag names in RichTextField and link them to existing tags

I've created pages in Wagtail using 'MyPage' class and assigned Tags to them using Taggit. These tags appear ok and I can display them without issue. When clicked they load related articles on a listing page. I'm trying to find a way to…
E Wilson
  • 125
  • 2
  • 10
0
votes
1 answer

Django taggit how to record id of user that added tag

I have Django app using django-taggit module. My work flow process is to add a photo, then come back to photo to assign tags using a photo_edit view, photo_edit form and photo_edit.html template as shown below. The app successfully tags the photo,…
curtisp
  • 2,227
  • 3
  • 30
  • 62
0
votes
1 answer

Wagtail getting all tags of a specific page type using api

I am trying to find a way to get the tag list of specific page types using wagtail api. class BlogPage(FreeFormPage): #... tags = ClusterTaggableManager(through=BlogPageTag, blank=True) class WorkPage(FreeFormPage): #... …
ratata
  • 1,129
  • 14
  • 42
0
votes
2 answers

How to completely uninstall django-taggit from my project?

I want to remove django-taggit from my project, but when I removed the 'taggit' app from the INSTALLED_APPS, the following error occurred: raise NodeNotFoundError(self.error_message, self.key,…
adnanmuttaleb
  • 3,388
  • 1
  • 29
  • 46
0
votes
1 answer

post_save doesn't list tags

Idea is to use a post_save signal to do things if an object has certain tags, but the tags are not being listed @receiver(post_save, sender=List) def list_saved(sender, instance, created, **kwargs): if created: for tag in…
jeffreyb
  • 143
  • 11
0
votes
2 answers

Customizing admin ui-widget in Wagtail

I use django-taggit 0.23.0 and wagtail 2.0.2 for a weblog app called puput 1.0.2. Puput github repo My preferred language is Persian (Farsi) in Wagtail's admin dashboard and one of my language letters is on the "comma" key of keyboard. So, each time…
kooshan75
  • 5
  • 1
  • 4
0
votes
1 answer

How Count() works?

In the book that I am, reading so as to count the number of tags in common between multiple posts the Count from django.db.models is used. For tags the taggit is used. But I am quite confused how this functionality is working post_tags_ids =…
R.Temur
  • 37
  • 6
0
votes
1 answer

Django Admin Search via Tag

How do I search in django admin-panel using tag? It will search using tag which known as django-taggit package. admin.py @staticmethod def get_tags(obj): tags = [] for tag in obj.tags.all(): tags.append(str(tag)) …
Zahid Uan Nabi
  • 159
  • 1
  • 1
  • 16
0
votes
0 answers

How to access the instance from a model manager?

I was told that doesn't make sense as managers operate on all rows not a single instance but I see what I want to achieve done in django-taggit library. Here: https://github.com/alex/django-taggit/blob/master/taggit/managers.py And the the…
Adam
  • 2,948
  • 10
  • 43
  • 74
0
votes
0 answers

Use Taggit-Selectize in Django to autocomplete the tags in User Form outside the Admin

I am using this https://github.com/chhantyal/taggit-selectize which uses django-taggit and selectize.js to add autocompletion of tags in my blog app. I have followed the instructions in the readme file and it works fine in admin. But when I am…
0
votes
2 answers

Django-taggit TaggableManager() producing Admin error

I'm working through the book Django 2 By Example, in which I'm trying to build a blog application with tagging functionality. My code for including django-taggit (after installing version 0.22.2 with pip) is the following. Add the app to…
J Finer
  • 389
  • 1
  • 3
  • 10
0
votes
1 answer

Django: How shouldI loop through Taggit tag's and list them alphabetically while at the same time seperating them in template?

I've seen this in a lot of sites actually, and I was wondering how I would go about replicating the functionality. Basically the tags follow this kind of pattern A | all tags that start with A Y | all tags that start with Y B | all tags…
Mike
  • 190
  • 12
0
votes
1 answer

Populating django-taggit field with **kwargs / a string

I have a custom command to populate Django objects with JSON data that is working mostly the way I want, but I'm having a problem with django-taggit fields. After parsing all of my data and outputting it in JSON, the genres look like this in my JSON…
Danny
  • 470
  • 1
  • 4
  • 21