Dirk Eschler
5b6f5ae8ea
Refactored test and model names.
2012-11-06 20:00:31 +01:00
Dirk Eschler
59e67c93ca
Fixed support for Python 2.5 which doesn't define format on strings.
2012-11-02 13:07:09 +01:00
Dirk Eschler
6ad3e839aa
Central definition of version in module's __init__.py. The version is reused by setup.py and sphinx.
2012-11-02 12:59:46 +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
80c12b7177
Silenced pyflakes for required but unused import statement.
2012-11-01 19:58:07 +01:00
Dirk Eschler
ef3a065c6e
Restored workaround for issue #19 .
2012-11-01 19:48:52 +01:00
Dirk Eschler
9772391adc
Moved initialization code back to models.py due to race condition on certain setups. Resolves issue #91 .
2012-11-01 18:18:21 +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
9fba4bcac9
Reverted to old force_jquery.js behaviour.
2012-10-27 15:30:37 +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
9f8571e655
Revert "Removed force_jquery.js."
...
This reverts commit 422c7aed74 .
2012-10-27 14:43:08 +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
422c7aed74
Removed force_jquery.js.
2012-10-26 16:02:22 +02:00
Jaap Roes
ae7477e439
issue 88
...
I think this is all that needs to change when you want to
depend on the version of jquery that's shipped with Django
2012-10-26 16:30:49 +03: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
12ff878532
Fixed misnamed variable.
2012-10-19 13:45:34 +02:00
Dirk Eschler
9d58478b2e
Fixed tabs don't properly support two-part language codes. Resolves issue 63.
2012-10-19 13:32:33 +02:00
Dirk Eschler
1c3360f613
Fixed setting MODELTRANSLATION_TRANSLATION_FILES should be optional. Resolves issue 86.
2012-10-15 08:30:21 +00: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
abea9835a7
Added support for FileField and ImageField. Resolves issue 30 (thanks to Bruno Tavares and Maxime Haineault).
2012-10-12 08:27:22 +00:00
Dirk Eschler
2edd7e1f57
Excluded tabular inlines from jQuery tabs, as they are currently not supported.
2012-08-06 11:51:16 +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
ea1e3426e7
Added workaround for issue 33: Using a non default language admin leads to confusing original field values. Done by forcing the default language in save_model.
2012-07-12 09:03:12 +00:00
Dirk Eschler
5d0afa21bd
Fixed non-unicode verbose field names (with actual unicode characters) showing up empty in forms. Resolves issue 35.
2012-07-11 20:24:37 +00:00
Dirk Eschler
e2bc3f2d4d
Added a new management command sync_database_fields to sync the database after a new model has been registered or a new language has been added. Resolves issue 62 (thanks to Sébastien Fievet and the authors of django-transmeta).
2012-07-11 12:57:37 +00:00
Dirk Eschler
10c9a95da6
Fixed dynamic TranslationOptions model name.
2012-07-11 12:28:30 +00:00
Dirk Eschler
fc43291632
Included pid in registration debug output and added a new setting MODELTRANSLATION_DEBUG to disable debug output independently from the global DEBUG setting.
2012-07-11 11:52:24 +00:00
Dirk Eschler
4afb04b75a
Moved autoregistration code to init and merged related changes from hyperweek's branch at github . This eliminates the need for hooking into urls.py.
2012-07-11 09:52:49 +00:00
Dirk Eschler
1af6f6de8a
Added an empty models.py as Django requires this for tests.
2012-07-10 22:36:25 +00:00
Dirk Eschler
de1441414c
Restored debug output which formerly lived in models.py and added it to autoregister.
2012-07-10 15:47:57 +00:00
Dirk Eschler
74b7feaeff
Removed stale models.py import.
2012-07-10 14:59:24 +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