Benedikt Willi
66387f433a
Add support for JSONField in modeltranslation/fields.py and update_translation_fields command and add tests for JSONField support.
2023-06-01 22:08:16 +02: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
Lukáš Letovanec
d414cd3e07
feat: Support UserAdmin add_fieldsets
...
Refs #654
2022-10-12 12:20:57 +00:00
Tim Gates
ab79ec8512
docs: Fix a few typos ( #651 )
...
There are small typos in:
- docs/modeltranslation/admin.rst
- docs/modeltranslation/installation.rst
- docs/modeltranslation/related_projects.rst
- modeltranslation/admin.py
- modeltranslation/management/commands/sync_translation_fields.py
- modeltranslation/tests/models.py
Fixes:
- Should read `similar` rather than `similiar`.
- Should read `whose` rather than `whos`.
- Should read `original` rather than `orginal`.
- Should read `missing` rather than `missings`.
- Should read `consistent` rather than `consistant`.
- Should read `compatibility` rather than `compatibiliy`.
Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-09-03 21:56:06 +03:00
Kazantcev Andrey
8ef8afd2d7
fix: Fix working in strict mode. ( #649 )
2022-08-05 16:06:31 +03:00
Serg Tereshchenko
86b67c271e
fix: Remove six (old compat layer for python2)
2022-07-13 23:14:28 +03:00
Serg Tereshchenko
a8e5d24b11
cleanup: Remove obsolete code for old django in loaddata command
2022-07-13 20:04:39 +03:00
Serg Tereshchenko
89abad769c
cleanup: Remove six from tests; Remove get_query_set; Remove unused has_custom_queryset
2022-07-13 19:49:54 +03:00
Serg Tereshchenko
426a8f5ff6
cleanup: Remove obsolete skipUnless
2022-07-13 19:39:16 +03:00
Serg Tereshchenko
480cdcfaf9
refactor: Use pytest assertions
...
This was mostly converted automatically with
pipx run unittest2pytest modeltranslation/tests -w
And some manual fixes.
2022-07-13 19:37:44 +03:00
Serg Tereshchenko
d3e2396be6
feat(dev): Migrate to pytest
2022-07-13 19:02:47 +03:00
Serhii Tereshchenko
39bbe821b3
feat: Support named argument for values_list ( #644 )
...
Co-authored-by: serdtsekol <serdtsekol@gmail.com>
2022-07-11 00:00:24 +03:00
Serg Tereshchenko
1b56110067
chore: Update typing
2022-07-10 23:51:19 +03:00
Serg Tereshchenko
58691691b7
cleanup: Remove old south mentions
2022-05-15 11:16:58 +03:00
Serg Tereshchenko
04e4ae36a7
chore: Use importlib-metadata
2022-05-15 09:16:49 +03:00
Serg Tereshchenko
ab66e8d2f7
fix: Fix install (included missing VERSION)
...
Refs #637
2022-05-15 08:36:47 +03:00
Serg Tereshchenko
84c535516f
chore(release): 0.18.0
2022-05-14 11:30:09 +03:00
Serg Tereshchenko
876f2e7158
fix: Fix django version detect during install
2022-05-14 11:27:19 +03:00
Serg Tereshchenko
79d2e089ef
fix: Add django version check for default_app_config
2022-05-14 11:23:27 +03:00
Serhii Tereshchenko
6b4bb733d9
fix: Store version as plain text file to simplify bumping ( #636 )
...
BREAKING CHANGE: Replaced `VERSION` in tuple format by `__version__` as a string
2022-05-14 11:11:07 +03:00
Serg Tereshchenko
2292830fca
chore(release): 0.17.7
2022-05-04 09:27:30 +03:00
Serg Tereshchenko
89be420540
chore: Move selects_all
2022-05-04 09:26:50 +03:00
Suyeol Jeon
defc37c7a5
fix: Do not include annotation fields when selecting specific fields ( #634 )
2022-05-04 09:25:53 +03:00
Serg Tereshchenko
f5264aa5b9
chore(release): 0.17.6
2022-04-29 13:27:06 +03:00
Suyeol Jeon
6f2688f52c
fix: Preserve annotate() fields in queryset ( #633 )
2022-04-29 13:26:15 +03:00
Serg Tereshchenko
b9a8d8ecc4
chore(release): 0.17.5
2022-01-30 11:28:50 +02:00
Serg Tereshchenko
41ef9cad92
Revert "chore: Avoid deprecation warning in Django 3.2+ ( #618 )"
...
This reverts commit 1e0b4fe8c6 .
# Conflicts:
# modeltranslation/__init__.py
2022-01-30 11:28:29 +02:00
Serg Tereshchenko
97534b9973
chore(release): 0.17.4
2022-01-28 16:26:58 +02:00
James McKinney
1e0b4fe8c6
chore: Avoid deprecation warning in Django 3.2+ ( #618 )
2021-11-09 10:10:17 +02:00
Serg Tereshchenko
25b6011a1f
style: Apply black
2021-09-18 10:55:39 +03:00
partizan
e3c521392f
ci: Use github actions for CI
2021-09-18 10:09:50 +03:00
Hovi
eb052018bf
feat: semi-configurable selection of elements to generate tabs in admin ( #607 )
...
Co-authored-by: karelhovorka <gpsclock@karel-hovorka.eu>
2021-07-22 12:47:15 +03:00
Serg Tereshchenko
804f750145
chore(release): 0.17.3
2021-06-28 15:46:01 +03:00
Hovi
41f0b7a1e1
chore: Added css class and id to main language switch
...
Refs #602
2021-06-28 15:45:00 +03:00
Serg Tereshchenko
c4ba6cebe7
chore(release): 0.17.2
2021-05-31 11:09:32 +03:00
Serg Tereshchenko
c65adb058d
fix(MultilingualQuerySet): Make _clone signature match default django _clone
...
Refs #483
2021-05-29 14:29:40 +03:00
Serg Tereshchenko
ce12610672
chore(release): 0.17.1
2021-04-15 21:45:57 +03:00
Serg Tereshchenko
f200bf1951
chore: Fix linter error
2021-04-15 21:40:26 +03:00
Antoine Fontaine
eaf613be17
fix: Fixed .latest() ORM method with django 3.2
...
Co-authored-by: Serg Tereshchenko <serg.partizan@gmail.com>
Refs #591
2021-04-15 21:38:56 +03:00
Serg Tereshchenko
f45828ffe9
chore(release): 0.17.0
2021-04-15 09:04:26 +03:00
Pieter Goetschalckx
fd137d8ae9
Fix Django 3.2 compatibility ( #590 )
...
feat: Add Django 3.2 compatibility
order_by in update_translation_fields.py:84 can be removed after next django 3.2.x is released (https://code.djangoproject.com/ticket/32645 ).
2021-04-15 08:51:08 +03:00
Serg Tereshchenko
fa5af79963
chore(release): 0.16.2
2021-02-18 09:41:56 +02:00