Ravenports generated: 01 Jan 2023 17:21
[ravenports.git] / bucket_1A / python-django-taggit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-django-taggit
4 VERSION=                3.1.0
5 KEYWORDS=               python
6 VARIANTS=               py310 py311
7 SDESC[py310]=           Reusable Django app for simple tagging (3.10)
8 SDESC[py311]=           Reusable Django app for simple tagging (3.11)
9 HOMEPAGE=               https://github.com/jazzband/django-taggit
10 CONTACT=                Python_Automaton[python@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPIWHL/d5/73/ed9e158f7dd52a31ab83c6d8bf083478d859dd8a64f72ebcdd4b3c8ccbfa
14 DISTFILE[1]=            django_taggit-3.1.0-py3-none-any.whl:main
15 DF_INDEX=               1
16 SPKGS[py310]=           single
17 SPKGS[py311]=           single
18
19 OPTIONS_AVAILABLE=      PY310 PY311
20 OPTIONS_STANDARD=       none
21 VOPTS[py310]=           PY310=ON PY311=OFF
22 VOPTS[py311]=           PY310=OFF PY311=ON
23
24 DISTNAME=               django_taggit-3.1.0.dist-info
25
26 GENERATED=              yes
27
28 [PY310].RUN_DEPENDS_ON=                 python-Django:single:py310
29 [PY310].USES_ON=                        python:py310,wheel
30
31 [PY311].RUN_DEPENDS_ON=                 python-Django:single:py311
32 [PY311].USES_ON=                        python:py311,wheel
33
34 [FILE:1346:descriptions/desc.single]
35 django-taggit
36 =============
37
38    :alt: Jazzband
39
40    :alt: Supported Python versions
41
42    :alt: Supported Django versions
43
44    :alt: GitHub Actions
45
46 This is a [Jazzband] project. By contributing you agree
47 to abide by the [Contributor Code of Conduct
48 ] and follow the [guidelines
49 ].
50
51 ``django-taggit`` a simpler approach to tagging with Django.  Add
52 ``"taggit" to your
53 INSTALLED_APPS`` then just add a TaggableManager to your model and go:
54
55 .. code:: python
56
57     from django.db import models
58
59     from taggit.managers import TaggableManager
60
61     class Food(models.Model):
62         # ... fields here
63
64         tags = TaggableManager()
65
66 Then you can use the API like so:
67
68 .. code:: pycon
69
70     >>> apple = Food.objects.create(name="apple")
71     >>> apple.tags.add("red", "green", "delicious")
72     >>> apple.tags.all()
73     [<Tag: red>, <Tag: green>, <Tag: delicious>]
74     >>> apple.tags.remove("green")
75     >>> apple.tags.all()
76     [<Tag: red>, <Tag: delicious>]
77     >>> Food.objects.filter(tags__name__in=["red"])
78     [<Food: apple>, <Food: cherry>]
79
80 Tags will show up for you automatically in forms and the admin.
81
82 ``django-taggit`` requires Django 3.2 or greater.
83
84 For more info check out the [documentation
85 ]. And for questions about usage or
86 development you can create an issue on Github (if your question is about
87 usage please add the `question` tag).
88
89
90 [FILE:115:distinfo]
91 543218ac346fbe02a65733e0341c91b57a3e0f7a41568966b26f1cea9edc4805        60199 django_taggit-3.1.0-py3-none-any.whl
92