Fernando
ac91740a5c
feat: Adds a language option to the update_translation_fields commands
...
Refs #563
Co-authored-by Fernando Cordeiro <fernando.cordeiro@jeronimo-martins.com>
2020-08-18 10:33:41 +03:00
Sergey Tereschenko
7a8a96ba18
chore(flake8): Fix linter errors.
2020-07-10 09:19:01 +03:00
Grégoire Deveaux
205a8f6c2f
Fix: add NewMultilingualManager __eq__()
2020-04-21 16:58:21 +02:00
Sergey Tereschenko
da5d8c91ba
fix flake8 warnings
2020-02-14 17:27:12 +02:00
Hans de Jong
0df9e5129d
updated test and also vlaidate that the correct manager is used
2020-02-13 09:14:48 +01:00
Hans de Jong
80731961fa
The issue was that base_manager method from django is a cached property that creates a manager each time it is required. So overwriting didnt work. Now i am far from a metaclass expert and im sure this can be done neater, however this is all the time i have at the moment. Improvements shouldnt be too hard now the issue has a (ugly) fix. Also added a short test, but i am used to pytest, so forgive me for the ugly manager solution. Hope this can help you out
2020-02-12 14:38:37 +01:00
Michal Arbet
7e6f912c6f
Fix failing tests when local migrations are used ( Fixes : #527 ).
...
The following tests issues are adressed in this patch:
- Settings are changed so that local tests.auth_migrations are used
instead of django.contrib.auth.migrations
- Distributed django.contrib.auth.migrations are copied to
tests.auth_migrations for tests
- All migrations are deleted from tests.auth_migrations on teardown
2019-11-13 13:25:59 +01:00
Sergey Tereschenko
1b36bff9ec
use tests for django 3
2019-10-27 19:00:14 +02:00
Sergey Tereschenko
74d2b0688a
Merge branch 'master' of https://github.com/mvbrn/django-modeltranslation into django-3
2019-10-27 18:57:00 +02:00
Dirk Groten
2a92d6c7b4
Fix flake8 formatting errors
2019-10-20 20:14:52 +02:00
Dirk Groten
f42d3404e2
Added test to make sure inherited models with no custom manager still have the correct default manager
2019-10-20 20:06:44 +02:00
Dirk Groten
50a7868fa7
Documented tests better
2019-10-20 19:24:06 +02:00
Dirk Groten
b6d4cf81d3
Test to check the default manager after registering model for translation
2019-10-20 19:18:27 +02:00
Misha Kalyna
5505208003
explicitly install and import six (which was removed from Django 3.0)
2019-10-05 21:07:08 +02:00
Constantine Fedenko
1e05807f20
fixed flake8 warnings
2019-07-02 14:02:22 +03:00
Constantine Fedenko
6e57ca7dc4
Fixed 'formfield_for_dbfield' method signature. See #510
2019-07-02 13:29:14 +03:00
Sergey Tereschenko
80bd452894
fix tests: use path to file
2019-04-16 23:40:48 +03:00
Mariusz Felisiak
6cb1009afe
Used postgresql back-end instead of deprecated django.db.backends.postgresql_psycopg2.
...
django.db.backends.postgresql_psycopg2 has been removed in Django 3.0.
2019-02-18 12:13:17 +01:00
Sergey Tereschenko
bffe85d965
Merge branch 'master' into 467-rev-lookup-error
...
# Conflicts:
# modeltranslation/tests/tests.py
# modeltranslation/translator.py
2019-02-17 22:41:04 +02:00
Sergey Tereschenko
6dfbe321fa
tests: fix models count
2019-02-17 19:21:15 +02:00
Sergey Tereschenko
647ddcede1
tests update
2019-02-16 16:18:47 +02:00
Sergey Tereschenko
aa510cba90
tests update
2019-02-16 15:11:32 +02:00
Sergey Tereschenko
1b8fd66f04
Failing test case for #467
2019-02-13 17:29:41 +02:00
Sergey Tereschenko
56707df455
cleanup: remove code for django < 1.11
2019-02-12 23:36:03 +02:00
Sergey Tereschenko
74d5158db7
cleanup: use NEW_DEFERRED_API
2019-02-12 23:31:39 +02:00
Sergey Tereschenko
196dc28caf
cleanup: use NEW_APP_CACHE
2019-02-12 23:29:28 +02:00
Borislav Petrović
458df66cb9
style: fixing flake8 warnings
2018-06-29 16:42:37 +02:00
Borislav Petrović
222e04822e
fix: copy form defined widget attrs
2018-06-29 16:25:12 +02:00
Andrey Maslov
1a70900ba4
Fix Django 2 related object descriptor cache
2018-04-15 04:58:18 +03:00
Petr Dlouhý
0f67f39e34
fix testing in Django 2.0
2018-01-31 12:11:19 +01:00
Dirk Eschler
ccc6e85a31
Added distinct test (ref #368 ).
2018-01-26 12:57:49 +01:00
Thomas Jost
019d116434
Add (failing) tests for inherited managers and M2M relationships
...
With several level of inheritance, custom managers with custom
querysets, and a ManyToMany field with an explicit intermediary table.
This reproduces bugs #389 and #413 .
2017-09-26 16:27:22 +02:00
Tocho Tochev
74929c2055
Fix reset of .select_related
2017-07-25 13:31:57 +03:00
Dirk Eschler
e28addcf45
Merge branch 'master' into remove-unused
2017-06-23 19:05:55 +02:00
Mariusz Felisiak
5f66a44649
Removed unused code.
...
Unused since cc214e3c66 .
2017-06-23 06:49:38 +02:00
Mariusz Felisiak
c93857c623
Used set() instead of direct assignment to the reverse side of a related set.
2017-06-22 22:20:06 +02:00
Dirk Eschler
46488f1abc
Handled import_models args change for Django 1.11.
2017-04-13 12:02:38 +02:00
Jacek Tomaszewski
a7b5102c43
Fix deferred classes signal connection ( close #379 ).
2016-08-19 21:23:45 +02:00
Jacek Tomaszewski
302c931fe0
Django 1.10 integration (ref #381 )
2016-08-19 21:23:45 +02:00
Jacek Tomaszewski
2f227a45af
Fix values_list + annotate combo bug ( close #374 ).
2016-06-01 19:02:30 +02:00
Matthias Kestenholz
dad7cc7ba6
Slightly reformat code to avoid flake8 errors
...
These changes hopefully fix the Travis CI build.
2016-02-20 11:21:07 +01:00
Jacek Tomaszewski
e50b0ce7a4
Try to fix custom manager in migrations (ref #330 , #339 , #350 ).
2015-12-13 15:47:08 +01:00
Jacek Tomaszewski
8320fc8a5a
Add Django 1.9 support (ref #349 ).
2015-12-06 18:48:17 +01:00
Venelin Stoykov
a39dee2b78
Fix FallbackValuesListQuerySet.iterator
...
This will fix generated result when creating valueslist queryset
with annotation and flat=True
Fixes #324
2015-09-03 10:04:54 +03:00
Lukas Lundgren
a6511bca83
Handle annotation fields when using values_list
2015-07-01 11:22:33 +02:00
zenoamaro
80d804b03e
Testing registration with decorator.
2015-05-22 23:49:11 +02:00
Jacek Tomaszewski
f6d02c1e5a
Fix deferring - enable skipped test ( #299 ).
2015-04-13 22:31:09 +02:00
Jacek Tomaszewski
d8e6f32cbd
Django 1.8 compatibility changes (ref #299 ).
...
Thanks to Luca Corti for initial commit.
2015-04-13 00:43:09 +02:00
Jacek Tomaszewski
af672f3160
Merge pull request #275 from wrwrwr/fix/indonesian
...
Fix support for Indonesian language ('_id' language suffix).
2014-10-24 20:21:29 +02:00
Jacek Tomaszewski
04b67f66d7
Add __reduce__ to MultilingualQuerySet (ref #273 ).
2014-10-24 19:54:10 +02:00