Commit graph

26 commits

Author SHA1 Message Date
Jacek Tomaszewski
5b51a7b793 Add fallback language feature and base tests. 2012-11-13 16:28:42 +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
a043680a68 Add Integer fields support. 2012-11-11 15:52:12 +01: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
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
6f7704bc57 Some cleanups and validated codebase against PEP8 and coding guidelines. 2012-07-04 10:09:22 +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
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
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
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
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
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
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
5722149554 Preserve the formfield widget of the translated field (thanks to piquadrat). 2010-03-07 12:01:27 +00:00
Dirk Eschler
6220314bc1 Code cleanups. 2010-03-02 22:17:39 +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
Peter Eschler
73ee7db101 Initial source and metadata import. 2009-02-17 21:08:19 +00:00