Commit graph

105 commits

Author SHA1 Message Date
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
Dirk Eschler
e85f776aa8 Added test for admin inline fieldset. 2012-07-08 18:48:01 +00:00
Dirk Eschler
75b7a27a94 Some cleanups. 2012-07-08 18:47:35 +00:00
Dirk Eschler
52401c3a9e Moved patch_prepopulated_fields to TranslationBaseModelAdmin as prepopulated_fields option is also available for inlines. Minor code cleanups. 2012-07-07 21:42:12 +00:00
Dirk Eschler
6dd89a46dd Updated changelog. 2012-07-06 15:49:48 +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
6f7704bc57 Some cleanups and validated codebase against PEP8 and coding guidelines. 2012-07-04 10:09:22 +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
Dirk Eschler
babf186512 Fixed widgets for translated fields are not properly copied from original fields (thanks to boris-chervenkov). Resolves issue 74. 2012-05-10 08:33:57 +00:00
Dirk Eschler
a0084ea6c3 Removed XMLField test which is deprecated since Django 1.3 and broke tests in Django 1.4. Resolves issue 75. 2012-05-10 08:28:34 +00:00
Dirk Eschler
eeb0a0b704 Prepared 0.3.3 release. 2012-02-23 10:03:41 +00:00
Dirk Eschler
1476e5483b Removed fix for grouped fieldsets committed in r124 because of a regression. This means grouped fieldsets are currently unsupported. 2012-02-23 09:53:56 +00:00
Dirk Eschler
d208a9d157 Changed jQuery search path. This allows use of a version of jQuery other than the one provided by Django. Users who want to force the use of Django's jQuery can include force_jquery.js. 2012-02-23 09:31:16 +00:00
Dirk Eschler
7f212aaa20 Added missing package_data option to include static files. 2012-02-22 22:54:05 +00:00
Dirk Eschler
9ed4b2167e Reverted r123 as this leads to problems with inlines. 2011-10-10 19:53:33 +00:00
Dirk Eschler
f2fd2eef59 Fixed grouped fieldsets translation is not displayed. Resolves issue 52. 2011-10-10 18:48:16 +00:00
Dirk Eschler
6055a1daec Fixed tabs don't properly support two-part language codes. Resolves issue 63. 2011-10-10 18:13:20 +00:00
Dirk Eschler
a27e5fc723 Fixed static files not included during installation. Resolves reopened issue 61 (thanks to Chris Adams). 2011-06-16 08:39:54 +00:00
Dirk Eschler
b7cc3cf262 Bumped version to 0.3.1. 2011-06-07 15:02:38 +00:00
Dirk Eschler
15d0896415 Renamed media folder to static. 2011-06-05 19:46:20 +00:00
Dirk Eschler
6409e2cb51 Created 0.3 docs from current development version. 2011-06-03 09:11:15 +00:00
Dirk Eschler
8ad5f4c34a Bumped version to 0.3. 2011-06-03 08:50:15 +00:00
Dirk Eschler
50f924cfad Prepared docs for 0.3 release. 2011-06-03 08:43:04 +00:00
Dirk Eschler
7b79b3c4d9 Added support for multi-table inheritance. Resolves issues 50 and 51 (thanks to Sébastien Fievet). 2011-06-01 15:25:40 +00:00
Dirk Eschler
cc194a36e1 Added download url. 2011-04-28 14:38:20 +00:00
Dirk Eschler
a5ce765879 Added additional meta-data. 2011-04-28 14:33:25 +00:00
Dirk Eschler
0a65b44c18 Added basic model inheritance tests (test_multitable_inheritance currently fails until the support is fixed in modeltranslation). 2011-04-26 15:28:36 +00:00
Dirk Eschler
f234075465 Removed unused import which even breaks django-1.3 support. 2011-04-14 10:02:00 +00:00
Dirk Eschler
8bc28393d9 Added FIXED for issue 47. 2011-04-11 22:57:31 +00:00
Dirk Eschler
ae7d03c64f Made the section "TranslationAdmin in combination with other admin classes" less confusing. Resolves issue 32. 2011-04-10 21:19:20 +00:00
Dirk Eschler
39262a8a02 Fixed a bug in the admin integration where an emptied default language field (which has been defined with "blank=True") hasn't cleared the default field. Resolves issue 47. 2011-04-10 20:27:24 +00:00
Dirk Eschler
5c0439c73c Added changelog message for resolved issue 5. 2010-12-22 10:36:58 +00:00
Dirk Eschler
0c854943ab Fixed translations are not saved for tinymce HTMLField when using jquery tabs. Resolves issue (thanks to kottenator). 2010-12-22 10:32:09 +00:00
Dirk Eschler
42d8fcd458 Added (incomplete) list of contributors to authors file. 2010-10-26 20:28:20 +00:00
Dirk Eschler
4b4a322bca Ensured dict names are unique on a model-app-fieldname basis. 2010-09-29 10:19:40 +00:00
Dirk Eschler
8c0c3eec4a Added potential fix for "field is required" validation error on original field even if the default language field is set. 2010-09-10 10:47:42 +00:00
Dirk Eschler
f525e1e2c0 Removed experimental support for related fields. The code is now available in a separate branch called django-modeltranslation-related-fields. To support related fields properly, deeper changes to the core of modeltranslation are required. These changes are beyond the scope of the next release. 2010-09-06 12:29:23 +00:00
Dirk Eschler
80d97888b0 Improved performance of update_translation_fields command. Resolves issue 43 (thanks to adamsc). 2010-09-06 08:58:52 +00:00
Dirk Eschler
ab03291848 General documentation touchups. Used wikir compatible syntax for literal blocks. Fixed internal links. 2010-08-30 09:54:31 +00:00
Dirk Eschler
951b0699cb Corrected tabs css path. 2010-08-29 21:29:32 +00:00
Dirk Eschler
63fd7c0c7c Changed handling of supported fields. By default CharField, TextField and subclasses of these fields are supported. Supported fields can be extended through the setting MODELTRANSLATION_CUSTOM_FIELDS. Support for related fields is experimental and these fields explicitly raise a FutureWarning now. 2010-08-27 08:39:41 +00:00
Dirk Eschler
6438ef28e5 Added jquery-ui based admin support for tabbed translation fields. Resolves issue 39 (thanks to jaap and adamsc). 2010-08-05 19:38:05 +00:00
Dirk Eschler
704a559c0d Patched MANIFEST.in to include all files in modeltranslation/media/. 2010-08-03 18:13:28 +00:00
Dirk Eschler
1b0a5d14f9 FIXED: Optional default language fields don't get the correct css class. 2010-08-03 18:10:08 +00:00
Dirk Eschler
7656c97189 Added css class to identify a translation field and the default translation field in admin (thanks to jaap). 2010-07-08 09:54:21 +00:00
Dirk Eschler
53cf8a0d5f Added model validation tests. 2010-07-07 14:06:15 +00:00
Dirk Eschler
d116c17cdd Deactivated tests of unsupported field and added tests for related fields (mostly stumbs which raise errors). 2010-07-06 22:04:31 +00:00
Dirk Eschler
edc82d9d8f Used attname as key in pre_save which adds the _id prefix for related fields automatically. Raised an experimental warning for related fields. 2010-07-06 15:34:22 +00:00
Dirk Eschler
974503ca0a Moved determination of default language into settings. 2010-07-06 09:52:41 +00:00