Commit graph

1032 commits

Author SHA1 Message Date
Jelmer
23ea25a3ca
Merge pull request #606 from ProtixIT/keyword-only-cleanup
Modernize the way some keyword-only arguments are implemented
2024-04-03 08:53:09 +02:00
Jelmer
89653b2d24
Merge pull request #607 from ProtixIT/cleanup-factory
Minor cleanup of the code handling `UrlsafeTokenField`'s `factory` argument
2024-04-03 08:52:26 +02:00
Jelmer
9e71a46552
Merge pull request #608 from jazzband/translations
Updated translation files
2024-04-01 21:04:00 +02:00
Jelmer Draaijer
c6d686e418 Translation files 2024-04-01 15:09:46 +02:00
Maarten ter Huurne
6c5ed66ef2 Use callable() builtin function over isinstance(..., Callable)
This is slightly more compact, but the main motivation is to work
around the following mypy bug:

https://github.com/python/mypy/issues/3060
2024-03-26 14:09:03 +01:00
Maarten ter Huurne
e34de65480 Fix error message of UrlsafeTokenField's factory arg check 2024-03-26 14:08:49 +01:00
Maarten ter Huurne
d8c43eab46 Add tracker to method signatures in FieldTrackerTestCase 2024-03-26 13:56:39 +01:00
Maarten ter Huurne
6c920508c1 Use keyword-only arguments to simplify a few __init__() methods
Keyword-only arguments can be used now that Python 2 is no longer
supported.
2024-03-26 13:53:02 +01:00
Jelmer
994d6c1c42
Merge pull request #600 from foarsitter/issue-manager
Add issue-manager
2024-03-25 19:22:37 +01:00
Jelmer
ab7996dbeb
Merge pull request #602 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-03-25 19:22:11 +01:00
Jelmer
8bef73cd99
Merge pull request #563 from foarsitter/docker_postgresql
Postgresql docker container for local development
2024-03-25 19:06:28 +01:00
pre-commit-ci[bot]
c7f61f6418
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.15.1 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.1...v3.15.2)
2024-03-25 17:37:33 +00:00
Jelmer Draaijer
c380b3bad6 Add issue-manager.yml 2024-03-25 08:35:25 +01:00
Jelmer
87a9466afa
Merge pull request #598 from ProtixIT/remove-obsolete-test-models
Remove obsolete test models
2024-03-22 21:28:03 +01:00
Jelmer
fc49c636a9
Merge pull request #597 from ProtixIT/remove-signal-test-helper
Remove obsolete `tests.signals` module
2024-03-22 21:27:13 +01:00
Maarten ter Huurne
9df3df99cf Remove obsolete NoRendered test model
The code under test was removed in fda2d39e, but this model remained.
2024-03-22 18:50:05 +01:00
Maarten ter Huurne
6c39b58cb4 Remove FeaturedManager and related obsolete test model code
The code under test was removed in 6ae66e01, but some of the test code
remained.
2024-03-22 18:43:45 +01:00
Jelmer
6e722b51b0
Merge pull request #596 from ProtixIT/status-test-model-naming
Resolve name clash among test models
2024-03-22 18:00:40 +01:00
Jelmer
aaf93c9d40
Merge pull request #595 from ProtixIT/skip-reason
Pass reason to `@skip` decorator
2024-03-22 18:00:03 +01:00
Jelmer
281c52013e
Merge pull request #594 from ProtixIT/joinmanager
Remove redundant definition of `JoinManager` from tests
2024-03-22 17:58:14 +01:00
Maarten ter Huurne
6f16488ef3 Remove tests.signals module
This module was support code for the `SaveSignalHandlingModel` tests.
That class got introduced in 5d6f8f4e and removed in 11f3a53b, but
the support code remained.
2024-03-22 17:53:59 +01:00
Maarten ter Huurne
ed4f04f282 Resolve name clash among test models
There were two classes named `StatusCustomManager`: the first is an
actual manager, the second a status model that uses a custom manager.
The latter is renamed to `CustomManagerStatusModel` in this commit.
2024-03-22 17:32:51 +01:00
Maarten ter Huurne
ab8a8ae53a Pass reason to @skip decorator
The decorator works without an argument as well, but that is an
undocumented feature of `unittest.skip()` that is not understood
by mypy and pytest.

In the case of pytest, it ignored the decorated class during test
collection, instead of collecting it and marking it as skipped.
2024-03-22 16:58:09 +01:00
Maarten ter Huurne
b7677161cb Remove redundant definition of JoinManager from tests
The `JoinManager` class already exists in `model_utils.managers`,
with the exact same definition.
2024-03-22 16:29:37 +01:00
Jelmer
1e481c4a45
Merge pull request #593 from foarsitter/use_tz
USE_TZ = True
2024-03-22 16:27:59 +01:00
Jelmer Draaijer
1979d4796f USE_TZ = True 2024-03-22 16:13:29 +01:00
Jelmer
26336b41f6
Merge pull request #510 from adamchainz/time_machine
Switch from freezegun to time-machine.
2024-03-22 15:46:19 +01:00
Jelmer
d51f5c75c8
Merge pull request #591 from ProtixIT/explicit-reexport
Explicitly re-export names from `__init__` module
2024-03-22 15:44:16 +01:00
Maarten ter Huurne
00e52e8508 Explicitly re-export names from __init__ module
Both mypy and flake8 understand `__all__`, removing the need for
warning suppression comments.
2024-03-22 14:50:31 +01:00
Jelmer
fe1d0c6907
Merge pull request #577 from gmcrocetti/monitor-default-none-when-nullable
`MonitorField` - Change default to None when the field is nullable
2024-03-22 14:28:10 +01:00
Jelmer Draaijer
caac9a47a0 Make use of alpine postgresql image 2024-03-22 08:09:37 +01:00
Guilherme Martins Crocetti
22015b8e69
chore(monitor-field): Add deprecation warning when the field is null and no default is provided. The new behavior will be introduced in a next major release 2024-03-21 20:05:14 -03:00
Jelmer Draaijer
1e62e848b6 Add docker-compose for local development 2024-03-21 16:42:47 +01:00
Jelmer Draaijer
8677eef1ca Rename database environment variables to align with the docker postgres image 2024-03-21 16:00:35 +01:00
Jelmer
6e7158bfa0
Merge pull request #516 from jayvdb/allow-sqlite-testing
Allow running tests using sqlite
2024-03-21 15:41:12 +01:00
Jelmer
89b7662fa8
Merge pull request #567 from ProtixIT/remove-clone-args
Remove arguments from `InheritanceQuerySetMixin._clone()`
2024-03-21 15:33:02 +01:00
Jelmer
b3e75ab906
Merge pull request #566 from ProtixIT/import-ConnectionDoesNotExist
Update where `ConnectionDoesNotExist` is imported from
2024-03-21 14:41:07 +01:00
Maarten ter Huurne
a1530ad838 Update where ConnectionDoesNotExist is imported from
It was moved to a different package in Django 3.2.
2024-03-21 14:18:19 +01:00
Jelmer
7b8a58b871
Merge pull request #580 from joecox/remove-dead-tracker-code
Remove dead `init_deferred_fields` method
2024-03-21 08:47:53 +01:00
Jelmer
46fc42ce18
Merge pull request #578 from gmcrocetti/ptbr-translations 2024-03-21 08:47:26 +01:00
Jelmer
b94db68176
Merge pull request #575 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-03-21 08:38:20 +01:00
Jelmer
f39c975e8b
Merge branch 'master' into ptbr-translations 2024-03-21 08:36:00 +01:00
Jelmer
99458d6c34
Merge pull request #589 from tadamcz/tadamcz-docs-SoftDeletableModel
clarify docs for managers of SoftDeletableModel
2024-03-21 08:21:29 +01:00
Jelmer
473ee7459c
Merge pull request #556 from meanmail/master
Don't use `post_init` signal for initialize tracker
2024-03-21 08:19:15 +01:00
meanmail
2bbbfcbfca Update changelog 2024-03-11 17:50:49 +01:00
meanmail
5663374890 Don't use post_init signal for initialize tracker 2024-03-11 17:50:12 +01:00
pre-commit-ci[bot]
488481734e
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2)
- [github.com/PyCQA/flake8: 6.0.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.0.0...7.0.0)
- [github.com/asottile/pyupgrade: v3.6.0 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.6.0...v3.15.1)
2024-02-19 17:41:33 +00:00
Tom Adamczewski
8b5f1f5213 clarify docs for managers of SoftDeletableModel
follow-up to https://github.com/jazzband/django-model-utils/pull/438/
2024-02-12 10:42:04 +00:00
Remco Wendt
46d33923ba
Merge pull request #588 from jazzband/shanx-patch-1
Update CHANGES.rst for new release
2024-02-10 16:17:31 +00:00
Remco Wendt
fb9f9c647d
Update CHANGES.rst 2024-02-10 17:09:14 +01:00