All Projects → bennylope → Django Taggit Labels

bennylope / Django Taggit Labels

Licence: bsd-3-clause
Clickable label widget for django-taggit

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Taggit Labels

Django Sitecats
Django reusable application for content categorization.
Stars: ✭ 18 (-70.97%)
Mutual labels:  django, tags
Cookiecutter Django Rest
Build best practiced apis fast with Python3
Stars: ✭ 1,108 (+1687.1%)
Mutual labels:  django
Awesome Python Primer
自学入门 Python 优质中文资源索引,包含 书籍 / 文档 / 视频,适用于 爬虫 / Web / 数据分析 / 机器学习 方向
Stars: ✭ 57 (-8.06%)
Mutual labels:  django
Drf Nested Routers
Nested Routers for Django Rest Framework
Stars: ✭ 1,098 (+1670.97%)
Mutual labels:  django
Django Enum Choices
Django choice field that supports Python enumerations
Stars: ✭ 57 (-8.06%)
Mutual labels:  django
Jsonfield
A reusable Django model field for storing ad-hoc JSON data
Stars: ✭ 1,101 (+1675.81%)
Mutual labels:  django
Django Minicms
Django 开发简易的内容管理系统
Stars: ✭ 56 (-9.68%)
Mutual labels:  django
Django Chinese Docs 18
📖 [译] django 中文文档协作翻译计划
Stars: ✭ 61 (-1.61%)
Mutual labels:  django
Django Auth Tutorial Example
Django Authentication Video Tutorial
Stars: ✭ 60 (-3.23%)
Mutual labels:  django
Django Carrot
A lightweight task queue for Django using RabbitMQ
Stars: ✭ 58 (-6.45%)
Mutual labels:  django
Dockdj
🚢 A recipe for building 12-factor Python / Django web apps with multi-container Docker and deploying to Amazon AWS using Elastic Beanstalk.
Stars: ✭ 57 (-8.06%)
Mutual labels:  django
Django Tsvector Field
Django field for tsvector (PostgreSQL full text search vector) with managed stored procedure and triggers.
Stars: ✭ 56 (-9.68%)
Mutual labels:  django
Django minio
Django app to use Minio Server as file storage.
Stars: ✭ 59 (-4.84%)
Mutual labels:  django
Visit nepal
An app to help tourists learn more about Nepal.
Stars: ✭ 57 (-8.06%)
Mutual labels:  django
Django Anymail
Django email backends and webhooks for Amazon SES, Mailgun, Mailjet, Postmark, SendGrid, Sendinblue, SparkPost and more
Stars: ✭ 1,109 (+1688.71%)
Mutual labels:  django
Evalai
☁️ 🚀 📊 📈 Evaluating state of the art in AI
Stars: ✭ 1,087 (+1653.23%)
Mutual labels:  django
Api automation test
接口自动化测试平台,已停止维护,看心情改改
Stars: ✭ 1,092 (+1661.29%)
Mutual labels:  django
Django Cms
The easy-to-use and developer-friendly enterprise CMS powered by Django
Stars: ✭ 8,522 (+13645.16%)
Mutual labels:  django
Djaoapp
User login, billing, access control as part of a session proxy
Stars: ✭ 61 (-1.61%)
Mutual labels:  django
Dzhtmltext
Delphi and Lazarus HTML Label component
Stars: ✭ 60 (-3.23%)
Mutual labels:  tags

==================== django-taggit-labels

.. image:: https://badge.fury.io/py/django-taggit-labels.svg :target: https://badge.fury.io/py/django-taggit-labels

.. image:: https://travis-ci.org/bennylope/django-taggit-labels.svg?branch=master :target: https://travis-ci.org/bennylope/django-taggit-labels

Label widget(s) for django-taggit <https://github.com/alex/django-taggit>_.

Now instead of this:

.. image:: https://raw.githubusercontent.com/bennylope/django-taggit-labels/master/docs/taggit-text.png

You can use this:

.. image:: https://raw.githubusercontent.com/bennylope/django-taggit-labels/master/docs/taggit-labels.png

Overview

This is a widget for use in the Django admin interface, and it depends on Django's namespaced jQuery. It allows you to add and remove tags by selecting or deselecting visual labels.

The label widget does not expose the input field so that you can add new tags. The base label widget instead shows all available tags and lets you pick between them in Django's admin interface. It presumes that you are using a managed (or 'curated' if you're feeling insufferable) tag list.

Quickstart

Install django-taggit-labels:

.. code-block:: bash

pip install django-taggit-labels

Add taggit_labels to your project:

.. code-block:: python

INSTALLED_APPS = (
    'taggit',
    'taggit_labels',
)

Use the label widget:

.. code-block:: python

from taggit.forms import TagField
from taggit_labels.widgets import LabelWidget

class ContentForm(forms.ModelForm):
    tags = TagField(required=False, widget=LabelWidget)

Just use this form class for your ModelAdmin <https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form>_ class now:

.. code-block:: python

class ContentAdmin(admin.ModelAdmin):
    form = ContentAdminForm

You can use the widget with your own tag model <http://django-taggit.readthedocs.org/en/latest/custom_tagging.html>_, too:

.. code-block:: python

from taggit.forms import TagField
from taggit_labels.widgets import LabelWidget

class ContentForm(forms.Form):
    tags = TagField(required=False, widget=LabelWidget(model=MyTag))

The tag model from taggit will be presumed if you do not specify a tag model.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].