Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master from og repo into our own version #4

Open
wants to merge 396 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
396 commits
Select commit Hold shift + click to select a range
5cd512c
Update change log
sergeyklay Sep 25, 2021
b748f81
Switch from url to re_path to add Django 4 support
sergeyklay Sep 25, 2021
849e1bc
Merge pull request #753 from sergeyklay/feature/translate-russian
sergeyklay Sep 25, 2021
5f31eb3
Add support to run tests for Python 3.10
sergeyklay Sep 30, 2021
16d8349
Fix Ukrainian language definition
sergeyklay Sep 30, 2021
031fa09
Merge pull request #756 from jazzband/fix/uk-language
sergeyklay Oct 2, 2021
dcd39a1
Merge pull request #755 from jazzband/feature/add-py10
sergeyklay Oct 2, 2021
cbfbe22
Fix TagField.has_changed for empty values (#757)
rtpg Oct 11, 2021
17ff472
Use assertEqual instead of assertEquals for Python 3.11 compatibility.
tirkarthi Oct 13, 2021
e42c41d
Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CON…
jazzband-bot Nov 3, 2021
fef738f
Merge pull request #761 from jazzband/jazzband/sync/default
rtpg Nov 10, 2021
534bfe4
Add precommit configuration
rtpg Nov 10, 2021
d4aab73
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 10, 2021
559bf84
Add question to FAQ
rtpg Nov 10, 2021
8ada5b7
Make TaggableManager.set API compatible with Django's RelatedManager.…
pablolmedorado Nov 11, 2021
13fdd25
Fix up translations based on recent code changes
rtpg Nov 14, 2021
cfca412
Prepare release (#767)
rtpg Nov 14, 2021
4f29996
Fix doc build and workflow job name. (#768)
jezdez Nov 14, 2021
c682517
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 15, 2021
971c305
Add Python 3.10 support. (#769)
hramezani Nov 15, 2021
52656a9
Merge pull request #770 from jazzband/pre-commit-ci-update-config
rtpg Nov 16, 2021
7d9a313
Update serializer with explicit fields value
ariwez Nov 16, 2021
12b899e
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 22, 2021
dcf5d6c
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 6, 2021
0478652
Change Python 3.10 in Github action test ci matrix.
hramezani Dec 6, 2021
df4a4d2
Remove unused code for Django < 2.0
hramezani Dec 6, 2021
4216d0f
Merge pull request #775 from hramezani/fix_python310
rtpg Dec 7, 2021
4042b85
Merge pull request #774 from hramezani/remove_unused_code
rtpg Dec 9, 2021
cbfaaa2
Add a example to the FAQ for factory_boy usage
rtpg Dec 9, 2021
d083396
Fix Django 4 compatibility issues (#778)
monty5811 Dec 16, 2021
2eff7ed
Drop Django 3.1 support.
hramezani Dec 16, 2021
6ffa01c
Update syntax to Python +3.6
hramezani Dec 16, 2021
34b11b2
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 27, 2021
5556944
improved code-blocks
Myzel394 Dec 30, 2021
9d9ca4b
Fixed #784 -- Added migrations autodetected by Django 4.0 (#785)
bmispelon Jan 7, 2022
da00c5d
Prepare Django Taggit 2.1.0 Release
rtpg Jan 24, 2022
148076e
Merge branch 'master' into test-documentation
rtpg Jan 24, 2022
5f3d0df
Merge pull request #787 from jazzband/test-documentation
rtpg Jan 24, 2022
3f439f1
Set transform=repr on assertQuerysetEqual
gasman Feb 22, 2022
a6aa703
Provide path_infos and reverse_path_infos properties on TaggableManager
gasman Feb 22, 2022
c1954ac
Make use of cached properties path_infos and reverse_path_infos
gasman Feb 22, 2022
f860b5c
Merge pull request #791 from gasman/fix/assertquerysetequal
rtpg Feb 23, 2022
354c035
Merge pull request #792 from gasman/fix/cached-pathinfo
rtpg Feb 23, 2022
84c34f7
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 4, 2022
a76ecca
Docs: replace deprecated/removed `django.utils.translation.ugettext_l…
Abbe98 Mar 18, 2022
9dbba05
Drop Django 2.2 support.
hramezani Apr 8, 2022
c06565f
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 11, 2022
83fe619
Merge pull request #795 from hramezani/drop_django22
rtpg Apr 12, 2022
5dfc48d
Merge pull request #796 from jazzband/pre-commit-ci-update-config
rtpg Apr 21, 2022
ddb5ce6
Preserve unicode when slugifying by default
rtpg Apr 21, 2022
191d727
Merge pull request #797 from jazzband/unicode-slugify
rtpg Apr 25, 2022
43b10e8
Prepare the release of Version 3.0.0
rtpg May 2, 2022
558d6b8
Merge pull request #801 from jazzband/prepare-3-0-0
rtpg May 2, 2022
3a5163a
Clear prefetch cache after updates
hartungstenio Jan 4, 2022
3fb02e8
Use django's TestCase on test_serializers
hartungstenio May 3, 2022
e10b6a0
Improve readability
hartungstenio May 4, 2022
0327d57
Add changelog entry
rtpg May 11, 2022
79e342c
Merge pull request #802 from hartungstenio/clear-cache
rtpg May 11, 2022
350e140
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 4, 2022
2727ef3
Merge pull request #808 from jazzband/pre-commit-ci-update-config
rtpg Jul 6, 2022
b45b9c2
docs: Fix a few typos
timgates42 Jul 22, 2022
eb66e66
Merge pull request #812 from timgates42/bugfix_typos
rtpg Jul 26, 2022
54b74f8
Do not display outdated unicode strings in the documentation.
sasha0 Aug 8, 2022
f3ce4d8
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 8, 2022
4765cd3
Merge pull request #813 from jazzband/pre-commit-ci-update-config
rtpg Aug 9, 2022
72c2111
Merge pull request #814 from sasha0/feature/docs-unicode
rtpg Aug 9, 2022
c707e14
Add pyupgrade and django-upgrade pre-commmit hook
hramezani Aug 9, 2022
87ad7ef
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 5, 2022
a87656f
Fix settings list markup in the getting started docs.
sasha0 Jul 21, 2022
85884df
Fix typo
Xdynix Sep 16, 2022
0287694
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 10, 2022
58de321
Merge pull request #822 from Xdynix/patch-1
rtpg Oct 21, 2022
ebf441e
Merge pull request #823 from jazzband/pre-commit-ci-update-config
rtpg Oct 21, 2022
8564bf4
add python 3.11 to CI, tox, and trove classifiers
joshuadavidthomas Oct 28, 2022
463954b
update CHANGELOG
joshuadavidthomas Oct 28, 2022
b05f648
Add Django 4.1 support.
hramezani Aug 9, 2022
8255781
Merge branch 'master' into py311
rtpg Oct 31, 2022
b24dfc4
Merge pull request #829 from joshuadavidthomas/py311
rtpg Oct 31, 2022
bdf7236
Add Python 3.11 to Django 4.1 tox configuration
hramezani Nov 8, 2022
ef421fe
Make TagListSerializerField subclass ListField
rtpg Nov 14, 2022
54cb1cc
Add details about Python/Django support
rtpg Nov 14, 2022
0ed92a5
Merge pull request #833 from jazzband/to-list-field
rtpg Nov 14, 2022
d416c3a
Prepare 3.1.0 release
rtpg Nov 18, 2022
12f1744
Merge pull request #834 from jazzband/prepare-3-1-0
rtpg Nov 18, 2022
f8ff51b
Merge pull request #816 from hramezani/pre-commit
rtpg Nov 18, 2022
64bda95
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 21, 2022
9b48bd9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 21, 2022
8dc5ab0
Merge pull request #836 from jazzband/pre-commit-ci-update-config
rtpg Nov 21, 2022
786f0b6
Fix faq.rst indentation
hashlash May 1, 2023
1fd40e9
Remove Python 3.6 support
rtpg May 4, 2023
9052b23
reformat files with latest black
rtpg May 4, 2023
3b1be72
Add Django 4.2 support (remove Django 4.0 support)
rtpg May 4, 2023
50494e6
Set Python 3.10 as the lowest Python for Django 5+
rtpg May 4, 2023
fa68cdc
fixup! Set Python 3.10 as the lowest Python for Django 5+
rtpg May 4, 2023
9e863a8
Implement get_joining_fields() and get_reverse_joining_fields()
rtpg May 4, 2023
2517448
Update form assertions to use div-based rendering for Django >= 5.0
rtpg May 4, 2023
3bd824d
remove Python 3.6 from the test matrix
rtpg May 4, 2023
b60cffa
Merge pull request #854 from jazzband/django-50
rtpg May 4, 2023
e5d6736
Merge pull request #853 from hashlash/patch-1
rtpg May 4, 2023
5d56122
Prepare Release 4.0.0
rtpg May 4, 2023
63c9a97
Merge pull request #855 from jazzband/django-50
rtpg May 4, 2023
649c7fb
Fix `tag_kwargs` and case insensitive discrepancy
dennisv Jun 22, 2023
8fa2a2f
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 17, 2023
81ddd40
Merge pull request #860 from dennisv/issue-859
rtpg Jul 24, 2023
c36bed6
Merge pull request #838 from jazzband/pre-commit-ci-update-config
rtpg Jul 24, 2023
16db42e
Add migration files for tests
rtpg Jul 24, 2023
32939cd
Merge pull request #863 from jazzband/django-upgrade
rtpg Jul 24, 2023
2e9a592
Change unique_together declaration to a unique constraint
rtpg Sep 20, 2023
bbda50f
rename the index
rtpg Sep 20, 2023
40543ac
remove usages of deprecated test helper
rtpg Sep 20, 2023
21e73f7
specify timezone
rtpg Sep 20, 2023
7ff7c86
use div rendering for test forms
rtpg Sep 20, 2023
822f1c8
queryset equal rename
rtpg Sep 20, 2023
41ad0a3
Revert "use div rendering for test forms"
rtpg Sep 20, 2023
2f65f97
Deal with deprecation warnings on djmain
rtpg Sep 20, 2023
467792f
make sure flake excludes common venv and tox locations
rtpg Sep 20, 2023
b347c01
remove python 3.7 support
rtpg Sep 20, 2023
6add0a1
enable warnings in tests
rtpg Sep 20, 2023
da33f5a
Remove Django 3.2 support
rtpg Sep 20, 2023
6e75ec4
add some comments to the migration itself
rtpg Sep 20, 2023
60064a7
Remove Python 3.7 from the github test matrix as well
rtpg Sep 20, 2023
7feee51
Merge pull request #869 from jazzband/django-upgrade
rtpg Oct 24, 2023
e10c762
remove stale version checks
rtpg Oct 24, 2023
fa7e698
Prepare Taggit 5.0.0
rtpg Oct 24, 2023
ee1e98c
Merge pull request #873 from jazzband/prepare-5-0-0
rtpg Oct 24, 2023
ccd0823
Update setup.cfg to properly describe the right minimum Django and Py…
rtpg Oct 26, 2023
b5ded0d
Prepare release 5.0.1
rtpg Oct 26, 2023
1b241a3
Merge pull request #877 from jazzband/prepare-5-0-1
rtpg Oct 26, 2023
5425d20
Add a readthedocs configuration file
rtpg Oct 26, 2023
a6271f4
Point to the right version in Sphinx
rtpg Oct 26, 2023
ed7b5b4
install the project so that the version number is available
rtpg Oct 26, 2023
f18f166
Update the documentation for the Python and Django versions
rtpg Oct 26, 2023
d04dcc3
Update the contributing doc to mention the docuemntation page as well
rtpg Oct 26, 2023
e2cffd8
Properly bump the version number to 5.0.1
rtpg Oct 26, 2023
9aaac8f
Merge pull request #879 from jazzband/fix-readthedocs
rtpg Oct 26, 2023
9157a89
Fix index_together CHANGELOG note
adamchainz Dec 6, 2023
5dded2c
Merge pull request #883 from adamchainz/patch-1
rtpg Jan 18, 2024
febc4cf
Update Chinese translation
zengqiu Jan 30, 2024
75e8f10
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 30, 2024
c0a028c
Remove fuzzy
zengqiu Jan 30, 2024
675e805
Merge pull request #886 from zengqiu/master
rtpg Mar 7, 2024
70539fa
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 13, 2024
bdfa254
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 13, 2024
203ee30
Merge pull request #866 from jazzband/pre-commit-ci-update-config
rtpg May 29, 2024
f5ba4b5
add TestTaggableManager
steverecio Oct 10, 2023
d96a216
fix _to_tag_model_instances to preserve order
steverecio Oct 11, 2023
e0c8858
ensure tag order is preserved
steverecio Oct 11, 2023
0595a42
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 11, 2023
5820930
missing arg
steverecio Oct 25, 2023
122112b
clean up tests
steverecio Oct 25, 2023
9697a97
fix conditional on ordering arg
steverecio Oct 25, 2023
897ed6a
make test more explicit
steverecio Oct 25, 2023
cb7d00c
fix case insensitive handling and tag_kwargs
steverecio Oct 25, 2023
0a8378b
fix processing logic
steverecio Oct 25, 2023
b297551
fixed duplicates issue
steverecio Oct 26, 2023
311c1e4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 26, 2023
82922eb
fix most_common test
steverecio Oct 31, 2023
8bfa7ed
a more elegant solution of imposing through table ordering only if fi…
steverecio Oct 31, 2023
acff592
unused import
steverecio Nov 1, 2023
b23715b
Make sure to only query as much as needed
rtpg Jun 2, 2024
e203e07
Add changelog entry
rtpg Jun 2, 2024
5ba5934
Add note to tricky code
rtpg Jun 2, 2024
855def6
fix style issues
rtpg Jun 2, 2024
15d83bc
ignore .direnv for flake8
rtpg Jun 2, 2024
1e70249
Add Steve to the AUTHORS
rtpg Jun 18, 2024
e4baf49
remove continue usage
rtpg Jun 18, 2024
5cdfef7
Merge pull request #892 from jazzband/tag-ordering
rtpg Jun 19, 2024
10811e8
Updating test suite with py312
guel-codes Jun 19, 2024
b565d42
updating CHANGELOG
guel-codes Jun 19, 2024
9dae874
Merge branch 'master' into 895-update-python-support
guel-codes Jun 19, 2024
67bdd55
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 19, 2024
8f785ad
adding Py 3.12 to the test.yml for github actions
guel-codes Jun 19, 2024
7fddf76
Merge branch '895-update-python-support' of github.com:guel-codes/dja…
guel-codes Jun 19, 2024
5c41824
894 - Add django 5.0 to test matrix
Trafire Jun 20, 2024
8c16c2c
894 - Add dj50 to envlist
Trafire Jun 20, 2024
327e4d1
894 - Add Django 5.0 to classifiers
Trafire Jun 20, 2024
5aa078a
894 - Remove django 5.0 support for python versions less than 3.10
Trafire Jun 20, 2024
f7493ac
Remove premature version header
rtpg Jun 23, 2024
b9a9c97
Merge pull request #898 from Trafire/894-django5_support
rtpg Jun 23, 2024
6b5339a
pulling in upstream changes and updating chaangelog
guel-codes Jun 24, 2024
ba03108
Merge pull request #896 from guel-codes/895-update-python-support
rtpg Jun 24, 2024
3961dc6
Set up a sample project
rtpg Jun 24, 2024
df934d1
Add Post model and basic listing page
rtpg Jun 24, 2024
08eb191
Add documentation on how to use the sample application
rtpg Jun 24, 2024
2ecc9c7
remove spurious file
rtpg Jun 24, 2024
32c87d1
isort imports
rtpg Jun 24, 2024
9fe72a9
Merge pull request #901 from jazzband/sample-project
rtpg Jun 26, 2024
af77d0d
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 1, 2024
1c1e81e
Merge pull request #893 from jazzband/pre-commit-ci-update-config
rtpg Jul 4, 2024
24e2d68
Saving progress
guel-codes Jul 6, 2024
0df866d
Tag merging functionality is done
guel-codes Jul 14, 2024
f7a3741
updating import syntax to pass isort test
guel-codes Jul 14, 2024
49e99ad
Merge branch 'master' into 899-merge-tags
guel-codes Jul 14, 2024
8f98db8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 14, 2024
1641737
updating docs and CHANGELOG
guel-codes Jul 14, 2024
6aef624
Merge branch '899-merge-tags' of github.com:jazzband/django-taggit in…
guel-codes Jul 14, 2024
f68d667
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 14, 2024
f1cc22e
708 - Add Natural Key Support to Tags model.
Trafire Jul 14, 2024
8a4f816
Merge branch 'refs/heads/master' into 708-natural-keys-support
Trafire Jul 14, 2024
743e9ae
708 - Update ChangeLog
Trafire Jul 14, 2024
1988558
updating our merge_tags_view method
guel-codes Jul 15, 2024
b992366
Merge branch '899-merge-tags' of github.com:jazzband/django-taggit in…
guel-codes Jul 15, 2024
f54d8c9
adding a filter and update method instead of save for tags merge
guel-codes Jul 15, 2024
9639498
708 - Remove Duplicate Manager Class
Trafire Jul 15, 2024
1da39dc
708 - Move Natural Key Manager back to models to avoid circular import
Trafire Jul 15, 2024
0de8a38
708 - Remove unused List import
Trafire Jul 15, 2024
cbf9bd2
removing the test postgres data from the sample app
guel-codes Jul 17, 2024
46db2d6
708 - Clean up Natural Key Manager Implementation
Trafire Jul 17, 2024
558ec17
708 - Remove unused import
Trafire Jul 17, 2024
d0fe810
Addressing PR comments
guel-codes Jul 18, 2024
954cb5d
Fixing failing test for docs
guel-codes Jul 18, 2024
4437d48
adding a small note under text field
guel-codes Jul 19, 2024
5ead624
708 - natural_key return type changed to string instead of generator …
Trafire Jul 22, 2024
c2147e8
Add documentation details
rtpg Jul 25, 2024
15ed6e5
Clean up documentation
rtpg Jul 25, 2024
b2906a9
Merge pull request #905 from Trafire/708-natural-keys-support
rtpg Jul 25, 2024
c6c7bb2
Fix issue when merging tags when the item has both the old and new tag
rtpg Jul 26, 2024
ba48993
isort fix
rtpg Jul 26, 2024
c02ffe5
Merge pull request #904 from jazzband/899-merge-tags
rtpg Jul 26, 2024
e764c3b
Prepare version 6.0.0
rtpg Jul 26, 2024
6f1496f
django-taggit-911 Enhance the Sample App
Trafire Jul 28, 2024
311f9f4
django-taggit-911 Enhance the Sample App remove django extenstions de…
Trafire Jul 28, 2024
5423fd1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
a1600c3
django-taggit-911 - Update button positions and remove unused delete …
Trafire Jul 28, 2024
a8bd958
Merge remote-tracking branch 'origin/django-taggit-911' into django-t…
Trafire Jul 28, 2024
6d62e80
django-taggit-911 - linting
Trafire Jul 28, 2024
f2dcecf
django-taggit-911 - linting
Trafire Jul 28, 2024
3c8ca91
django-taggit-911 - delinting
Trafire Jul 28, 2024
5ec2151
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
38758ac
django-taggit-911 - order tags
Trafire Jul 28, 2024
97a76bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
c874f36
django-taggit-911 - order tags
Trafire Jul 28, 2024
77af843
Merge remote-tracking branch 'origin/django-taggit-911' into django-t…
Trafire Jul 28, 2024
24f6d6a
django-taggit-911 - remove make files
Trafire Jul 28, 2024
b06b3a3
django-taggit-911 - remove unused function
Trafire Jul 28, 2024
5c2ccf1
django-taggit-911 - Update Docs, add db automation scripts.
Trafire Jul 28, 2024
a17cbca
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
d1903be
django-taggit-911 - remove duplicate description
Trafire Jul 28, 2024
71f1cd3
django-taggit-911 - comment cleanup
Trafire Jul 28, 2024
163a6d9
django-taggit-911 - comment cleanup
Trafire Jul 28, 2024
2b43c90
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
6616fb3
django-taggit-911 - comment cleanup
Trafire Jul 28, 2024
4256ce3
Merge remote-tracking branch 'origin/django-taggit-911' into django-t…
Trafire Jul 28, 2024
ffa9d60
Merge pull request #910 from jazzband/prepare-release
rtpg Jul 29, 2024
bd860f5
create management command to remove orphaned tags
guel-codes Jul 25, 2024
874d2d5
adding a note to the CHANGELOG
guel-codes Jul 25, 2024
c668894
Make sure to use the deletion result count
rtpg Jul 30, 2024
3b15951
Include orphaned tags tests
rtpg Jul 30, 2024
d8889a6
Merge pull request #908 from guel-codes/682-orphaned-tags
rtpg Jul 30, 2024
764664f
Merge pull request #912 from Trafire/django-taggit-911
rtpg Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
tags:
- '*'

jobs:
build:
if: github.repository == 'jazzband/django-taggit'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools twine wheel

- name: Build package
run: |
python setup.py --version
python setup.py sdist --format=gztar bdist_wheel
twine check dist/*

- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
repository_url: https://jazzband.co/projects/django-taggit/upload
60 changes: 60 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test

on: [push, pull_request]

jobs:
build:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest

# The maximum number of minutes to let a workflow run
# before GitHub automatically cancels it. Default: 360
timeout-minutes: 30

strategy:
# When set to true, GitHub cancels
# all in-progress jobs if any matrix job fails.
fail-fast: false

max-parallel: 5

matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/tox.ini') }}
restore-keys: |
${{ matrix.python-version }}-v1-

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions

- name: Tox tests
run: tox -v

- name: Upload coverage
uses: codecov/codecov-action@v1
with:
name: Python ${{ matrix.python-version }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ coverage.xml
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
Expand Down Expand Up @@ -102,3 +101,6 @@ venv.bak/

# mypy
.mypy_cache/

# PyCharm files
.idea/
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.19.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"

python:
install:
- method: pip
path: .

sphinx:
configuration: docs/conf.py
60 changes: 0 additions & 60 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
django-taggit was originally created by Alex Gaynor.

django-taggit-serializer was originally created by Paul Oostenrijk.

The following is a list of much appreciated contributors:

Nathan Borror <nathan@playgroundblues.com>
Expand All @@ -16,3 +18,5 @@ Florian Apolloner <apollo13@apolloner.eu>
Andrew Pryde <andrew@rocketpod.co.uk>
John Whitlock <jwhitlock@mozilla.com>
Jon Dufresne <jon.dufresne@gmail.com>
Pablo Olmedo Dorado <pablolmedorado@gmail.com>
Steve Reciao <stevenrecio@gmail.com>
148 changes: 148 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,154 @@
Changelog
=========

(Unreleased)
~~~~~~~~~~~~
* Added a management command (``remove_orphaned_tags``) to remove orphaned tags

6.0.0 (2024-07-27)
~~~~~~~~~~~~~~~~~~

* By default, order tag items on instances by the primary key. This generally means that they will be ordered by "creation date" for the tag item.
The previous behavior for this was that by default tag items were not ordered. In practice tag items often end up ordered by creation date anyways, just due to how databases work, but this was not a guarantee.
If you wish to have the old behavior, set ``ordering=[]`` to your ``TaggableManager`` instance.
We believe that this should not cause a noticable performance change, and the number of queries involved should not change.
* Added the ability to merge tags via the admin
* Add Django 5.0 support (no code changes were needed, but now we test this release).
* Add Python 3.12 support
* Add support for dumpdata/loaddata using natural keys

5.0.1 (2023-10-26)
~~~~~~~~~~~~~~~~~~

* Fix the package metadata to properly reflect the right Django and Python version requirements
Release 5.0.0 improperly stated its Django bounds as >=3.2, so people installing without bounds will end up on a version that won't work.

5.0.0 (2023-10-24)
~~~~~~~~~~~~~~~~~~
* **Backwards icompatible:** Rename the (``content_type``, ``object_id``) index on ``TaggedItem``.
It is very unlikely for this to affect your code itself, and a migration will rename the index. This should not cause any downtime according to my research (Postgres does not lock the table for index renames, and Oracle holds a tiny lock to do it, and the change is only to the metadata, so is not dependent on table size).

* **Backwards incompatible:** Remove the ``.index_together`` and ``.unique_together`` attributes on ``TaggedItem``

We are instead using ``constraints`` and ``indexes`` to set up these properties.
* Remove support for Django 3.2.
* Remove usage of deprecated APIs for Django 4.2
* Remove support for Python 3.7 (no code changes involved)
* Fix ``tag_kwargs`` and ``TAGGIT_CASE_INSENSITIVE=True`` discrepency.

4.0.0 (2023-05-04)
~~~~~~~~~~~~~~~~~~
* Remove Python 3.6 support (no code changes occurred, but we no longer test this release).
* Remove Django 4.0 support (no code changes occurred, but we no longer test this release).
* Add Django 4.2 support.

3.1.0 (2022-11-08)
~~~~~~~~~~~~~~~~~~

* Add Python 3.11 support (no code changes were needed, but now we test this release).
* Add Django 4.1 support (no code changes were needed, but now we test this release).
* Fixed an issue where object caches would not be properly cleared after updating tags, leading
to stale reads in cases where ``prefetch_related`` is used.
* Change ``TagListSerializerField`` to be a subclass of ``ListField``. This should improve support for API document generation. This change should not affect API behavior, but might affect metaprogramming code, so please procede carefully during this update.

3.0.0 (2022-05-02)
~~~~~~~~~~~~~~~~~~

* **Backwards incompatible:** Tag slugification used to silently strip non-ASCII characters
from the tag name to make the slug. This leads to a lot of confusion for anyone using
languages with non-latin alphabets, as well as weird performance issues.

Tag slugification will now, by default, maintain unicode characters as-is during
slugification. This will lead to less surprises, but might cause issues for you if you are
expecting all of your tag slugs to fit within a regex like ``[a-zA-Z0-9]`` (for example in
URL routing configurations).

Generally speaking, this should not require action on your part as a library user, as
existing tag slugs are persisted in the database, and only new tags will receive the
enhanced unicode-compatible slug.

If you wish to maintain the old stripping behavior, set the setting
``TAGGIT_STRIP_UNICODE_WHEN_SLUGIFYING`` to ``True``.

As a reminder, custom tag models can easily customize slugification behavior by overriding
the ``slugify`` method to your business needs.

`` Drop Django 2.2 support.

2.1.0 (2022-01-24)
~~~~~~~~~~~~~~~~~~

* Add Python 3.10 support.
* Add Django 4.0 support.
* Drop Django 3.1 support.


2.0.0 (2021-11-14)
~~~~~~~~~~~~~~~~~~

* **Backwards incompatible:** ``TaggableManager.set`` now takes a list of tags
(instead of varargs) so that its API matches Django's ``RelatedManager.set``. Example:

- previously: ``item.tags.set("red", "blue")``
- now: ``item.tags.set(["red", "blue"])``

* Fix issue where ``TagField`` would incorrectly report that a field has changed on empty values.
* Update Russian translation.
* Add Persian translation
* Fix issue for many languages where content types were not being properly translated.
* Provide translators additional context regarding strings in TagBase model.


1.5.1 (2021-07-01)
~~~~~~~~~~~~~~~~~~

* Fix compiled Ukranian translation (which would cause a failure on load for this locale).
* Update compiled Danish translation.


1.5.0 (2021-06-30)
~~~~~~~~~~~~~~~~~~

* Vendor in the `django-taggit-serializer` project (under `taggit.serializers`).
* Add Arabic translation.
* Add Ukranian translation.


1.4.0 (2021-04-19)
~~~~~~~~~~~~~~~~~~

* Add Python 3.9 support.
* Remove Python 3.5 support.
* Add Django 3.2 support.
* Remove Django 1.11 and 3.0 support.
* Add Danish translation.
* Fix crashing that could occur with ``similar_objects`` in multi-inheritance contexts.
* Add support for custom fields on through table models with `through_defaults` for ``TaggedManager.add`` and ``TaggedManager.set``.


1.3.0 (2020-05-19)
~~~~~~~~~~~~~~~~~~

* Model and field ``verbose_name`` and ``verbose_name_plural`` attributes are
now lowercase. This simplifies using the name in the middle of a sentence.
When used as a header, title, or at the beginning of a sentence, a text
transformed can be used to adjust the case.
* Fix prefetch_related when using UUIDTaggedItem.
* Allow for passing in extra constructor parameters when using
``TaggableManager.add``. This is especially useful when using custom
tag models.

1.2.0 (2019-12-03)
~~~~~~~~~~~~~~~~~~

* **Removed** support for end-of-life Django 2.0 and 2.1.
* Added support for Django 3.0.
* Added support for Python 3.8.
* Moved ``TaggedItemBase.tags_for()`` to ItemBase.
* Replaced reference to removed Django's ``.virtual_fields`` with
``.private_field``.
* Added ``TextareaTagWidget``.

1.1.0 (2019-03-22)
~~~~~~~~~~~~~~~~~~

Expand Down
Loading