django-taggit

Problem with tags in Django | used taggit for storing tags

Problem with tags in Django | used taggit for storing tags Question: Template file: <div id="tab-2" class="tab-pane fade show p-0"> {% for event in events %} {% for tag in event.tags.all %} {% if tag == ‘Tech’ %} <div class="row g-3"> <div class="col mb-5"> <div class="d-flex h-100"> <div class="flex-shrink-0"> <img class="img-fluid" src="{{event.e_image.url}}" alt="" style="width: 430px; …

Total answers: 1

django-taggit: make the tags not required in the admin

django-taggit: make the tags not required in the admin Question: I’ve started using django-taggit and it seems to fit the bill. But for me there is still an issue with the admin site: I included the tags attribute in the ModelAdmin like this: class MyModel(db.models.Model): name = models.CharField(max_length=200) tags = TaggableManager() class MyModelAdmin(admin.ModelAdmin): fieldsets = …

Total answers: 2