{"id":17269093,"url":"https://github.com/bennylope/django-taggit-labels","last_synced_at":"2025-04-03T02:10:26.757Z","repository":{"id":725040,"uuid":"20602416","full_name":"bennylope/django-taggit-labels","owner":"bennylope","description":"Clickable label widget for django-taggit","archived":false,"fork":false,"pushed_at":"2023-04-19T18:46:02.000Z","size":156,"stargazers_count":69,"open_issues_count":5,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T02:06:44.442Z","etag":null,"topics":["django","python","tags"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bennylope.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-06-07T20:48:47.000Z","updated_at":"2024-11-22T15:07:34.000Z","dependencies_parsed_at":"2023-07-06T14:17:06.012Z","dependency_job_id":null,"html_url":"https://github.com/bennylope/django-taggit-labels","commit_stats":{"total_commits":82,"total_committers":21,"mean_commits":"3.9047619047619047","dds":0.7073170731707317,"last_synced_commit":"ce6f9a0a9ca48c40608ae30dc50ad34538c5b7ea"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennylope%2Fdjango-taggit-labels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennylope%2Fdjango-taggit-labels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennylope%2Fdjango-taggit-labels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennylope%2Fdjango-taggit-labels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennylope","download_url":"https://codeload.github.com/bennylope/django-taggit-labels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922247,"owners_count":20855345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","python","tags"],"created_at":"2024-10-15T08:15:19.109Z","updated_at":"2025-04-03T02:10:26.731Z","avatar_url":"https://github.com/bennylope.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"====================\ndjango-taggit-labels\n====================\n\n.. image:: https://badge.fury.io/py/django-taggit-labels.svg\n    :target: https://badge.fury.io/py/django-taggit-labels\n\nLabel widget(s) for `django-taggit \u003chttps://github.com/alex/django-taggit\u003e`_.\n\nNow instead of this:\n\n.. image:: https://raw.githubusercontent.com/bennylope/django-taggit-labels/master/docs/taggit-text.png\n\nYou can use this:\n\n.. image:: https://raw.githubusercontent.com/bennylope/django-taggit-labels/master/docs/taggit-labels.png\n\nOverview\n--------\n\nThis is a widget for use in the Django admin interface, and it depends on\nDjango's namespaced jQuery. It allows you to add and remove tags by selecting\nor deselecting visual labels.\n\nThe label widget does not expose the input field so that you can add new tags. The\nbase label widget instead shows all available tags and lets you pick between\nthem in Django's admin interface. It presumes that you are using a managed (or\n'curated' if you're feeling insufferable) tag list.\n\nQuickstart\n----------\n\nInstall django-taggit-labels:\n\n.. code-block:: bash\n\n    pip install django-taggit-labels\n\nAdd `taggit_labels` to your project:\n\n.. code-block:: python\n\n    INSTALLED_APPS = (\n        'taggit',\n        'taggit_labels',\n    )\n\nUse the label widget:\n\n.. code-block:: python\n\n    from taggit.forms import TagField\n    from taggit_labels.widgets import LabelWidget\n\n    class ContentForm(forms.ModelForm):\n        tags = TagField(required=False, widget=LabelWidget)\n\nJust use this form class for your `ModelAdmin\n\u003chttps://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form\u003e`_\nclass now:\n\n.. code-block:: python\n\n    class ContentAdmin(admin.ModelAdmin):\n        form = ContentAdminForm\n\nYou can use the widget with `your own tag model\n\u003chttp://django-taggit.readthedocs.org/en/latest/custom_tagging.html\u003e`_, too:\n\n.. code-block:: python\n\n    from taggit.forms import TagField\n    from taggit_labels.widgets import LabelWidget\n\n    class ContentForm(forms.Form):\n        tags = TagField(required=False, widget=LabelWidget(model=MyTag))\n\nThe `tag` model from taggit will be presumed if you do not specify a tag model.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennylope%2Fdjango-taggit-labels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennylope%2Fdjango-taggit-labels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennylope%2Fdjango-taggit-labels/lists"}