Commit graph

39 commits

Author SHA1 Message Date
Dirk Eschler
e94bbcd3d2 Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
Jacek Tomaszewski
dbc114f228 Allow descriptor introspection.
(See Django #8248 for details,
http://code.djangoproject.com/ticket/8248)
2013-01-29 19:54:23 +01:00
Dirk Eschler
56926d5801 Fixed db_column option not taken into account. Resolves issue #83. 2012-11-18 15:30:34 +01:00
Dirk Eschler
5affe7940c Added basic tests for DateField, DateTimeField and TimeField and added them to the list of supported fields. 2012-11-18 00:08:04 +01:00
Dirk Eschler
4abf2dbb6f Marked FilePathField as an implicitly supported field as it is a subclass of CharField. 2012-11-17 23:00:57 +01:00
Dirk Eschler
0f3a89cf39 Handled GenericIPAddressField which is only present in Django 1.4+. 2012-11-17 17:35:21 +01:00
Dirk Eschler
5088f591fd Disabled the test for GenericIPAddressField for now as it new in Django 1.4 and the tests will fail with 1.3. That said we don't expect any different behaviour from this field compared to IPAddressField. 2012-11-17 17:12:24 +01:00
Dirk Eschler
1163765c3b Increased the list of supported fields. Today featuring: Floatfield, DecimalField, IPAddressField and GenericIPAddressField. 2012-11-17 16:19:15 +01:00
Jacek Tomaszewski
261818de8b Refactor SUPPORTED_FIELDS: delete IntegerField subclasses. 2012-11-15 20:53:24 +01:00
Bruno Tavares
940b8911b1 Clean up the namespace imports 2012-11-15 10:30:03 +00:00
Dirk Eschler
7dd3891821 Added support and basic tests for BooleanField and NullBooleanField. 2012-11-14 23:37:45 +01:00
Dirk Eschler
825cbe38da Refactored TranslationField. Removed method overrides which are obsoleted by the the field_factory. 2012-11-14 22:43:42 +01:00
Dirk Eschler
93db5f109b Reflected baseclass name of returned subclass in field factory. 2012-11-14 14:18:38 +01:00
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