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
Dirk Eschler
7dd3891821
Added support and basic tests for BooleanField and NullBooleanField.
2012-11-14 23:37:45 +01:00
Jacek Tomaszewski
777867dcf7
Clarify resolution order.
2012-11-13 16:57:24 +01:00
Jacek Tomaszewski
dd92cf0115
Add more verbose test for fallback languages.
2012-11-13 16:45:44 +01:00
Jacek Tomaszewski
5b51a7b793
Add fallback language feature and base tests.
2012-11-13 16:28:42 +01:00
Jacek Tomaszewski
86cb1e0de2
Use namespaced settings values in utils.
2012-11-13 16:03:09 +01:00
Jacek Tomaszewski
df02c81207
Disable rule 3
...
Merge branch 'upstream/no-rule3' into 'master'
2012-11-12 19:32:50 +01:00
Jacek Tomaszewski
71364966a5
Make model constructor rewrite fields in kwargs.
2012-11-12 12:54:10 +01:00
Jacek Tomaszewski
cff7382f74
Fix objects.create kwargs priority.
2012-11-12 12:25:02 +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
Jacek Tomaszewski
acf59e3a55
Fix python 2.5 compatibility.
2012-11-10 22:28:58 +01:00
Jacek Tomaszewski
37b5c0f03f
Fix errors pointed by Travis.
2012-11-10 22:09:07 +01:00
Jacek Tomaszewski
c7b8b77e86
Allow tests to be run together with other apps.
2012-11-10 19:31:46 +01:00
Jacek Tomaszewski
8d9d837b2f
Move testrunner.
2012-11-10 11:39:07 +01:00
Dirk Eschler
2e3c000960
Handled non-empty test media root directory deletion.
2012-11-07 11:50:04 +01:00
Dirk Eschler
cb3cce70be
Cleaned up test media directories which are created during FileFieldsTest run.
2012-11-07 11:10:59 +01:00
Dirk Eschler
5b6f5ae8ea
Refactored test and model names.
2012-11-06 20:00:31 +01:00
Dirk Eschler
08a9683ae1
Switched to flake8 in favour of pep8 and pyflakes which allows to ignore certain statements.
2012-11-01 20:05:17 +01:00
Dirk Eschler
2e93ff05b4
Removed verify_exists argument from URLField declaration as it is deprecated in upcoming Django 1.5.
2012-10-28 00:23:32 +02: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
Dirk Eschler
98e5e593f2
Merged app cache reset handling from django-modeltranslation-wrapper into ModeltranslationTestBase and cleaned up debug code from last commit.
2012-10-26 14:00:52 +02:00
Dirk Eschler
508eb6e800
Debugging drop tables when running on travis-ci.
2012-10-26 13:21:30 +02:00
Dirk Eschler
96a719ad2a
Made test call non-interactive.
2012-10-25 16:27:30 +02:00
Dirk Eschler
b361b87848
Trying yet another approach to make things work on travis-ci using management command to call test.
2012-10-25 12:07:40 +02:00
Dirk Eschler
6fb0940273
Created DjangoTestSuiteRunner manually to see if it changes anything when running on travis-ci.
2012-10-25 11:32:16 +02:00
Dirk Eschler
aa274b72a2
Used override of default database setting based on the DB env var present on travis-ci.
2012-10-25 11:09:22 +02:00
Dirk Eschler
354fcc93b1
Added mysql and postgres environments to travis-ci config and removed workaround from last commit.
2012-10-24 22:52:49 +02:00
Dirk Eschler
12fd95110c
Potential workaround for 'duplicate column name' error when using travis-ci and different django environments.
2012-10-24 22:25:42 +02:00
Dirk Eschler
6d60647741
Added workaround for pyflakes issue #13 .
2012-10-24 21:28:37 +02:00
Dirk Eschler
d3e86f160b
Made changes to support at least Django 1.3.
2012-10-24 20:56:01 +02:00
Dirk Eschler
60d8fd5262
Added a SECRET_KEY to test settings. Silences a DeprecationWarning and takes care of the fact that the upcoming Django 1.5 won't even start without one.
2012-10-24 17:20:44 +02:00
Dirk Eschler
aac70fa613
Temporarily deactivated (the only) failing test to get a full run of travis ci.
2012-10-24 17:07:31 +02:00
Dirk Eschler
4b4238b847
Removed deprecated MODELTRANSLATION_TRANSLATION_REGISTRY setting from test settings.
2012-10-24 16:17:07 +02:00
Dirk Eschler
5c0f4da084
Added staticfiles to INSTALLED_APPS only if Django 1.3 or later is used.
2012-10-24 14:13:04 +02:00
Dirk Eschler
dcd406a0df
Refactored tests to use a separate models.py.
2012-10-24 13:48:09 +02:00
Dirk Eschler
669ab7a923
Added a runtests.py for easier test running.
2012-10-24 12:23:08 +02:00
Dirk Eschler
3acfa09dbc
- Validated codebase against pep8 and pyflakes.
...
- Fixed an undefined name bug in add_localized_fields error message when a model already has a field by the name that is added.
- Fixed redefined method name in ModeltranslationWithFileFields test class.
2012-10-24 11:06:35 +02:00
Dirk Eschler
a3db814551
Added unittest for FileField and ImageField and incorporated a small fix for the pre_save method of TranslationField (thanks to Bruno Tavares).
2012-10-12 12:59:52 +00:00
Dirk Eschler
1aa515e739
Added missing DEFAULT_LANGUAGE setting.
2012-07-13 08:04:11 +00:00
Dirk Eschler
4fe3f6d837
Updated unittest of rule 3 to do a language switch. This should demonstrate a wrong behaviour of save when the current language is different than the default language. In this case the original field is set to value of the current language's field. See issue 33 for details.
2012-07-12 22:15:44 +00:00
Dirk Eschler
4579d831e5
Use app-level translation files in favour of a single project-level one. Adds an autoregister feature similiar to the one provided by Django's admin. A new setting MODELTRANSLATION_TRANSLATION_FILES keeps backwards compatibility with older versions. This is basically a merge from django-modeltranslation-wrapper with a few changes regarding how registration is triggered. See documentation for details. Resolves issues 58 and 71 (thanks to Jacek Tomaszewski, the author of modeltranslation-wrapper).
2012-07-10 12:58:08 +00:00
Dirk Eschler
e85f776aa8
Added test for admin inline fieldset.
2012-07-08 18:48:01 +00:00
Dirk Eschler
59c637ba36
More work on the admin integration refactoring. The exclude_languages isn't really thread safe, removed it for now. Handled custom model form fields and exclude options.
2012-07-06 15:49:26 +00:00
Dirk Eschler
1c8e82890d
Major refactoring of the admin integration. Subclassed BaseModelAdmin and InlineModelAdmin. Patching options in init doesn't seem to be thread safe. Instead used provided hooks like get_form, get_formset and get_fieldsets. This should resolve several problems with the exclude and fieldsets options and properly support options in inlines. Added a new admin option exclude_languages to exclude certain translation fields per admin class. Moved tests to separate folder and added tests for TranslationAdmin. To run the tests the settings provided in model.tests.modeltranslation have to be used (settings.LANGUAGES override doesn't work for TranslationAdmin).
2012-07-04 09:29:05 +00:00