Commit graph

54 commits

Author SHA1 Message Date
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
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
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
Dirk Eschler
a1bd45eaa9 Fixed Python 2.4 incompatibility. Resolves issue 40. 2010-07-05 18:55:05 +00:00
Dirk Eschler
adc7af11d3 Fixed fieldname isn't ensured to be string. Resolves issue 41 (thanks martyn.clement). 2010-06-30 19:37:37 +00:00
Dirk Eschler
1e10fcb01f Added tests for non-text-fields (rule 1-4 covered so far). Note that tests for boolean and nullboolean fields fail, so they aren't working as expected. 2010-06-27 19:35:37 +00:00
Dirk Eschler
77350b1e89 Factored out settings into a separate settings.py and consistently used an app specific settings prefix, TRANSLATION_REGISTRY now deprecated in favour of MODELTRANSLATION_TRANSLATION_REGISTRY. 2010-06-26 08:54:08 +00:00
Dirk Eschler
406abfb89f Refactored creation of translation fields. Added a factory to handle the creation of translation fields. The factory also checks if a field is officially supported by modeltranslation and bails out early in case it doesn't. Resolves issue 37. 2010-06-24 13:24:03 +00:00
Dirk Eschler
5d5bf067ad Handle related fields in field descriptor (work in progress, issue 36). 2010-06-22 22:02:16 +00:00
Dirk Eschler
006239a68e Restored handling of KeyError raised by ForeignKeyTanslationField. 2010-06-21 20:26:52 +00:00
Dirk Eschler
0ac39fba8c Added configurable default value per field instance. Resolves issue 28 (thanks to bmihelac). 2010-06-21 13:38:34 +00:00
Dirk Eschler
a56f07c44b Added support for NullBooleanField. Kept backwards compatibility with Django-1.0. Resolves issue 34 (thanks to jaap). 2010-06-21 11:04:27 +00:00
Dirk Eschler
9b68efda05 Added setting to override the default language. Resolves issue 2. 2010-06-21 09:43: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
c851c3887b Possible fix for regression in south_field_triple caused by r55. 2010-06-17 09:24:47 +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
39ad93ba5b Fixed admin form validation errors with empty translated values and unique=True. Resolves issue 26 (thanks to adamsc). 2010-06-15 09:37:01 +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
76e04858cd Fixed verbose names of translated fields are not translated. Resolves issue 24 (thanks to carl.j.meyer). 2010-05-26 09:14:00 +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
51f973657e Reverted removal of TRANSLATION_REGISTRY. Handled ImportError. 2010-03-17 10:00:29 +00:00
Dirk Eschler
5722149554 Preserve the formfield widget of the translated field (thanks to piquadrat). 2010-03-07 12:01:27 +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
5fd7306b7e Added workaround for swallowed ImportErrors by printing a traceback explicitly. Mostly resolves issue 17. 2010-03-06 01:40:26 +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
0d0cb70eb5 Only print debug statements to stdout if the runserver or runserver_plus management commands are used. Resolves issue 16. 2010-03-02 16:47:19 +00:00
Dirk Eschler
37e0ec21d5 Removed TRANSLATION_REGISTRY setting. The translation.py is supposed to be kept in the project root and this has to be in PYTHONPATH anyway. 2010-03-02 15:34:49 +00:00
Dirk Eschler
4b564e147a Removed print statements so its usable with mod_wsgi. Resolves issue 7. 2010-02-23 14:44:23 +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
6aa0b75275 Added support for South, resolves issue 11 (thanks to andrewgodwin). 2010-02-16 12:29:13 +00:00
Dirk Eschler
325837b742 Fixed creation of db fields with invalid python language code, resolving #4 (thanks to carl.j.meyer). 2010-02-16 10:47:57 +00:00
Dirk Eschler
353a4c8f65 Fixed tests to run from any project, resolving #6 (thanks to carl.j.meyer). 2010-02-16 10:01:23 +00:00
Dirk Eschler
4a5fd40ec2 Resolved #1 (thanks to carl.j.meyer for the patch). 2010-02-15 17:02:40 +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
93ca595086 Fixed the management command for updating translation fields. 2009-02-18 00:05:33 +00:00