Commit graph

47 commits

Author SHA1 Message Date
Sergey Tereschenko
6fe97ca45b remove old django version 2019-02-13 17:37:20 +02:00
Sergey Tereschenko
1b8fd66f04 Failing test case for #467 2019-02-13 17:29:41 +02: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
Jacek Tomaszewski
302c931fe0 Django 1.10 integration (ref #381) 2016-08-19 21:23:45 +02:00
Jacek Tomaszewski
e50b0ce7a4 Try to fix custom manager in migrations (ref #330, #339, #350). 2015-12-13 15:47:08 +01:00
zenoamaro
80d804b03e Testing registration with decorator. 2015-05-22 23:49:11 +02:00
Jacek Tomaszewski
e59cf5a4cd Readd GenericIp field support and tests as we now require Django >= 1.4. 2014-08-02 16:42:14 +02:00
Jacek Tomaszewski
1d7e0876ec Satisfy new flake8 version. 2014-03-27 00:39:41 +01:00
Dirk Eschler
591e945c33 Add more control over required languages (close #143). 2014-03-15 15:18:52 +01:00
Jacek Tomaszewski
9a5fe20140 Fix empty FileField handling (close #215). 2013-11-13 19:04:42 +01:00
Jacek Tomaszewski
71af06c7c9 Add configurable formfields (close #211, ref #163, #187).
This will hopefully at last resolve the problem with nullable CharFields.
2013-10-23 15:40:45 +02:00
Jacek Tomaszewski
0e76f1ec7d Add OneToOneField support. 2013-10-12 13:58:57 +02:00
Jacek Tomaszewski
8a2c8b894e Add more prepopulated_fields tests. 2013-10-10 16:54:15 +02:00
Jacek Tomaszewski
74df71bdf2 Merge pull request #163 from wrwrwr/feature/no-empty-string-fallback-for-nullable
Fallback on field default rather than the empty string
2013-09-01 10:52:00 -07:00
Dirk Eschler
cc5687e4d0 Merged test-unique-nullable-fields branch into master. 2013-06-18 11:09:14 +02:00
deschler
20d7e21809 Added basic ProxyModel test cases (ref #185). 2013-05-26 20:22:39 +02:00
wrwrwr
b9494f7607 Merge branch 'master' into feature/no-empty-string-fallback-for-nullable
Conflicts:
	modeltranslation/admin.py
	modeltranslation/fields.py
	modeltranslation/translator.py
2013-05-13 13:34:37 +02:00
Jacek Tomaszewski
32e945e28b Handle non-translation form submision for translated models (close #167). 2013-04-02 09:51:44 +02:00
wrwrwr
627c2b55e9 Added a fallback_undefined option to allow customizing the value that triggers falling back. 2013-03-17 17:35:22 +01:00
wrwrwr
740cfea50d Test for the nullable CharField case. 2013-03-17 11:25:42 +01:00
Jacek Tomaszewski
fccdf93577 Finish ForeignKey reverse relation handling (ref #161).
Also enhance tests and refactor MultilingualManager rewriting of
spanned relations lookups.
2013-03-13 15:50:22 +01:00
Braden MacDonald
420e3b6c52 Implement ForeignKey support (does not support reverse relations) 2013-03-06 14:20:16 -08:00
Dirk Eschler
47c717f576 Added a quick test to check the managers behaviour with unique nullable fields. This passes locally with sqlite, let's see what travis has to say about mysql. 2013-02-21 12:54:05 +01:00
wrwrwr
f168b55737 Apply population using a pre_save signal.
It can be used with ``get_or_create`` (without resaving) and, more importantly, fixture loading.
Extend population by providing two new modes: ``default`` that sets just the default translation (only if its not given; ensuring a fallback is available; alike ``update_translation_fields``) and ``required`` that further limits population by only filling default translation of non-nullable fields (minimum to keep some level of consistency).
Add a ``populate(mode)`` toggle on multilingual query set / manager and an ``auto_populate``  context manager for fixture loading.
2013-02-19 10:47:25 +01:00
Jacek Tomaszewski
14fdaa59fa Add descriptor test. 2013-02-13 11:59:11 +01:00
Dirk Eschler
4ca3c103e5 Fixed prepopulated fields only work on the first defined field and made function aware of the current language. Added a unittest to verify. Resolves issue #57. 2013-02-12 15:53:00 +01:00
Dirk Eschler
966d5ee962 Added unittest for group-fieldsets functionality in TranslationAdmin. 2013-02-12 12:20:32 +01:00
Dirk Eschler
8ff3b3731a Fixed messed up multitable test model names. 2013-02-11 11:53:01 +01:00
wrwrwr
ce59c16e4f Flake8, unused variable and import. 2013-02-10 19:05:59 +01:00
wrwrwr
36c5d0b81a Test registration and translation fields inheritance with a more complex model hierarchy (inspired by Mezzanine). 2013-02-10 18:32:17 +01:00
Jacek Tomaszewski
865f451953 Fix MultilingualQUerySet custom inheritance. 2013-01-07 18:02:15 +01:00
Jacek Tomaszewski
0bdd01b0c8 Refactor tests: add section labels in models and translation. 2012-12-06 18:13:59 +01:00
Jacek Tomaszewski
f0d6a955de Refactor tests: refactor first TestCase. 2012-12-06 13:57:11 +01:00
Dirk Eschler
5affe7940c Added basic tests for DateField, DateTimeField and TimeField and added them to the list of supported fields. 2012-11-18 00:08:04 +01:00
Dirk Eschler
5088f591fd Disabled the test for GenericIPAddressField for now as it new in Django 1.4 and the tests will fail with 1.3. That said we don't expect any different behaviour from this field compared to IPAddressField. 2012-11-17 17:12:24 +01:00
Dirk Eschler
1163765c3b Increased the list of supported fields. Today featuring: Floatfield, DecimalField, IPAddressField and GenericIPAddressField. 2012-11-17 16:19:15 +01:00
Dirk Eschler
b20496cb22 Merge pull request #113 from zlorf/metaclass_field_aggregation
TranslationOptions fields inheritance
2012-11-15 13:54:21 -08:00
Dirk Eschler
2e4265324d Added test for CommaSeparatedIntegerField and noted that it's implicitly supported as a subclass of CharField. 2012-11-15 21:29:02 +01:00
Jacek Tomaszewski
0ede18c0c5 Fix field aggregation. 2012-11-15 20:34:20 +01:00
Bruno Tavares
2431e2a21a field aggregation when subclassing a TranslationOption 2012-11-15 18:26:56 +00:00
Dirk Eschler
7dd3891821 Added support and basic tests for BooleanField and NullBooleanField. 2012-11-14 23:37:45 +01:00
Jacek Tomaszewski
0949e95441 Add MultilingualManager and its tests. 2012-11-11 16:28:29 +01:00
Jacek Tomaszewski
a043680a68 Add Integer fields support. 2012-11-11 15:52:12 +01:00
Dirk Eschler
5b6f5ae8ea Refactored test and model names. 2012-11-06 20:00:31 +01:00
Dirk Eschler
58ae1b42a8 Revert "Revert "Moved registrations in tests to a separate translation.py.""
This reverts commit 4ae1fb2d55.
2012-10-27 15:16:49 +02:00
Dirk Eschler
4ae1fb2d55 Revert "Moved registrations in tests to a separate translation.py."
This reverts commit c75709948c.
2012-10-27 14:42:46 +02:00
Dirk Eschler
c75709948c Moved registrations in tests to a separate translation.py. 2012-10-26 14:53:04 +02:00