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
|
74b7feaeff
|
Removed stale models.py import.
|
2012-07-10 14:59:24 +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
|
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
|
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
|
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
|
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
|
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
|
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
|
974503ca0a
|
Moved determination of default language into settings.
|
2010-07-06 09:52:41 +00:00 |
|
Dirk Eschler
|
b8fab905dc
|
Fixed TranslationField pre_save does not get the default language correctly. Factored out determination of default language. Resolves issue 31 (thanks to jaap).
|
2010-06-17 14:33:39 +00:00 |
|
Dirk Eschler
|
2e4a85e791
|
Added support for related fields - ForeignKey, ManyToManyField and OneToOneField. Resolves issue 15.
|
2010-06-15 12:39:04 +00:00 |
|
Dirk Eschler
|
ae8c116c29
|
Fixed mangling of untranslated prepopulated fields. Resolves issue 25 (thanks to carl.j.meyer).
|
2010-06-01 08:59:02 +00:00 |
|
Dirk Eschler
|
3f4a6eb472
|
Validated codebase against pep8.
|
2010-04-19 10:52:57 +00:00 |
|
Dirk Eschler
|
411890e94b
|
Added support for admin prepopulated_fields. Resolves issue 21.
|
2010-04-19 10:17:56 +00:00 |
|
Dirk Eschler
|
c59c0e094d
|
Added support for admin list_editable. Resolves issue 20 (thanks to carl.j.meyer).
|
2010-04-09 14:12:09 +00:00 |
|
Dirk Eschler
|
371fc0101b
|
Resolved a race condition between model import and translation registration in production by ensuring that models are registered for translation before TranslationAdmin runs. Resolves issue 19 (thanks to carl.j.meyer).
|
2010-04-09 08:53:08 +00:00 |
|
Dirk Eschler
|
5eb60f06f5
|
Fixed occasional "This field is required" error for the original field. Resolves issue 5.
|
2010-03-06 21:30:11 +00:00 |
|
Dirk Eschler
|
8756af3494
|
Added support for generic admin inlines (GenericTabularInline, GenericStackedInline). Factored out patch_translation_field functionality and import cleanups.
|
2010-03-05 21:09:36 +00:00 |
|
Dirk Eschler
|
6220314bc1
|
Code cleanups.
|
2010-03-02 22:17:39 +00:00 |
|
Dirk Eschler
|
68215e5cbb
|
Fixed broken admin fields and fieldsets. Resolves issue 9 (thanks to simoncelen).
|
2010-02-23 14:20:42 +00:00 |
|
Dirk Eschler
|
135208d9d1
|
Added support for inlines.
|
2009-12-18 15:08:39 +00:00 |
|
Peter Eschler
|
0cd9a5ddd1
|
Admin code cleanup (fixes issue 3).
|
2009-03-10 23:20:30 +00:00 |
|
Peter Eschler
|
e4a882abc8
|
Mostly cleanup.
|
2009-02-21 02:18:06 +00:00 |
|
Peter Eschler
|
73ee7db101
|
Initial source and metadata import.
|
2009-02-17 21:08:19 +00:00 |
|