Serhii Tereshchenko
a1106d1fe1
fix: Fix indonesian language support
...
Refs #763
2024-10-17 11:14:03 +03:00
Serhii Tereshchenko
785133b6ac
chore: Formatting
2024-09-28 15:17:57 +03:00
Serhii Tereshchenko
880e37e7cd
chore: Add test-case for #760
2024-09-28 15:11:05 +03:00
Matthias Schoettle
58894dc8a3
chore: Add type hint test
...
Refs #758
2024-09-05 23:30:51 +03:00
Serhii Tereshchenko
01553b6d87
Revert "fix: Fix type error for Python 3.8 ( #754 )" ( #757 )
...
This reverts commit 5cc37c256f .
2024-09-04 21:26:25 +03:00
Serhii Tereshchenko
9a3aebf6cd
fix test
2024-09-04 19:34:58 +03:00
Serhii Tereshchenko
89c51096bc
add test
2024-09-04 19:34:58 +03:00
Serhii Tereshchenko
d420b6a9db
fix: Fix django-cms compatibility
...
Refs #748
Refs https://github.com/django-cms/django-cms/issues/7948
2024-09-04 19:34:58 +03:00
Serhii Tereshchenko
5cc37c256f
fix: Fix type error for Python 3.8 ( #754 )
...
Closes #753
2024-08-13 11:08:42 +03:00
Serhii Tereshchenko
56c578400f
fix: Support multiple translation fields in get_translation_fields
2024-08-07 17:59:44 +03:00
Matthias Schoettle
13af637d87
fix(types): Use Union instead of | for some types
...
Refs #744
2024-07-05 09:19:05 +03:00
Serhii Tereshchenko
0bbdb5fe8f
feat: Add global MODELTRANSLATION_REQUIRED_LANGUAGES setting
...
Refs #743
2024-06-20 20:09:32 +03:00
Serhii Tereshchenko
b726c8f284
chore: Refer to self.required_lanuages once, to make searching for it cleaner.
2024-06-20 19:34:58 +03:00
Serhii Tereshchenko
d0b8e707ec
chore: Remove code for old django versions
2024-06-01 10:37:33 +03:00
Serhii Tereshchenko
9d9a2ab8b0
chore: Update code for minumum python 3.9
2024-06-01 10:37:33 +03:00
Matthias Schoettle
d2c16feba9
fix(types): Make admin classes generic as their super classes ( #737 )
...
Co-authored-by: Serhii Tereshchenko <serg.partizan@gmail.com>
2024-06-01 10:18:58 +03:00
Serhii Tereshchenko
6768a26a9d
chore(tests): Type-check tests
2024-06-01 10:08:11 +03:00
Serhii Tereshchenko
67d26e6f63
chore: Use poetry deps for testings ( #741 )
...
Also, add lsp optional group to install python-lsp-server
2024-06-01 09:03:48 +03:00
Serhii Tereshchenko
cdf05b9b6c
chore: Update ruff
2024-05-26 07:59:54 +03:00
Serhii Tereshchenko
b97c22c197
fix(types): Fix fields type ( #739 )
...
Most likely, this won't cause any troubles for standard use-cases. But, if you used `get_options_for_model()` and `.fields` from this instance, you need to rename it to `.all_fields`.
BREAKING CHANGE: Rename `fields` (dict with set of TranslationField) to `all_fields`, on the TranslationOptions instance.
2024-05-26 07:29:52 +03:00
Serhii Tereshchenko
47f8083576
fix(types): Export public variables
2024-05-25 10:51:44 +03:00
wookkl
a0aeb58b47
feat: Support F and Concat expressions in annotate()
...
Refs #735
2024-05-24 16:17:30 +03:00
Hugo Defrance
bdee9ff5b9
Feat: Add build_lang helper in utils
2024-05-16 12:29:07 +03:00
Serhii Tereshchenko
d7a4d0b841
chore: Apply ruff format
2024-05-16 12:23:19 +03:00
wookkl
b016af5d4a
fix: Remove deprecated test config starting from Django 5.0
2024-05-16 12:21:59 +03:00
Serhii Tereshchenko
118d13da6f
chore: Fix fields type
2024-05-07 17:49:48 +03:00
Viicos
af48655eb0
Add py.typed marker
2024-04-05 11:06:44 +03:00
Victorien
a9e95e8c78
feat: Add types
...
Refs #716
2024-04-04 11:27:00 +03:00
Serhii Tereshchenko
8742ad3554
style: Reformat files (use double quotes)
2023-11-25 13:48:57 +02:00
Leonid
641fbe89ab
fix: Fixed bug in tabbed_translation_fields.js
...
Refs #597
2023-11-17 14:45:20 +02:00
Serhii Tereshchenko
2061f6c264
fix(ci): Replace flake8 with ruff
2023-10-15 15:53:57 +03:00
Serhii Tereshchenko
e7640c7119
fix: Apply force_str only to Promise
...
Refs #701
2023-09-08 13:44:51 +03:00
Sergei Maertens
2657de7c2e
feat: Support language-specific field defaults
...
Refs #700 , #698
2023-09-08 08:59:58 +03:00
Sergei Maertens
b189326543
chore: Add missing migrations for tests app/models ( #699 )
2023-09-05 10:12:33 +03:00
Andrei Shabanski
d86c6defc8
feat: extend update_fields with translation fields in Model.save() ( #687 )
2023-07-16 11:04:27 +03:00
Benedikt Willi
b3debe82d4
Add support for JSONField in modeltranslation/fields.py and update_translation_fields command and add tests for JSONField support.
2023-06-01 22:33:45 +02:00
Serhii Tereshchenko
d315a90e9b
chore: Update tests
2023-05-30 18:07:34 +03:00
Serhii Tereshchenko
86cfa3f913
chore: Sort imports
2023-05-30 17:51:20 +03:00
Serhii Tereshchenko
dc58cb8106
chore: Apply black
2023-05-30 17:42:28 +03:00
Serhii Tereshchenko
3c6cbd59a7
chore: Update old syntax
...
pyupgrade --keep-percent-format --py38-plus modeltranslation/**/*.py
2023-05-30 17:38:48 +03:00
Serhii Tereshchenko
ec69a82a36
chore: Split tests
2023-05-30 17:37:46 +03:00
Benedikt Willi
e5fb74c520
Added missing new line at the end of test.yml, use implicit call to parent class, added another testcase where created is True.
2023-05-30 14:19:49 +02:00
Benedikt Willi
ac905c01c8
Add update_or_create method to MultilingualQuerySet and add test for it in ModeltranslationTest class.
2023-05-30 12:07:18 +02:00
Serg Tereshchenko
f0fb6ebd8d
chore: Update formatting
2023-02-09 10:38:43 +02:00
Stefan Hammer
d65ff60007
fix: Fix handling of expressions in values()/values_list()
...
This basically duplicates some code from django's implementation.
Refs #670
2023-02-08 16:53:35 +01:00
Gabriele Baldi
f69e3172bc
feat: Add support for ManyToManyFields 🧑🤝🧑 ( #668 )
2023-01-27 15:05:18 +02:00
Serg Tereshchenko
4f690ab772
chore: Apply black
2022-11-22 16:40:51 +02:00
Philipp
fcfbd5ce05
fix: Fix admin widget for fk fields ( #662 )
...
Refs #660
2022-11-22 16:21:00 +02:00
Maksudul Haque
4927b6cb63
Make Context Managers (fallbacks and auto_populate) Thread Safe ( #657 )
2022-11-08 14:13:17 +00:00
Michal Dabski
09ce0e076b
fix: Fix unexpected ordering after values()/values_list() followed by order_by().
...
Refs #655
Refs #656
2022-11-07 09:24:04 +00:00