Commit graph

264 commits

Author SHA1 Message Date
Dirk Eschler
321b8a1e48 Added comment about zinnia. 2012-11-29 13:13:07 +01:00
Dirk Eschler
79bccd55a5 Merge branch 'patch-1' of https://github.com/mihaisucan/django-modeltranslation 2012-11-29 13:07:35 +01:00
Dirk Eschler
05d9223c8b Added documentation for the MODELTRANSLATION_FALLBACK_LANGUAGES setting. 2012-11-28 12:50:42 +01:00
Dirk Eschler
16c761057f Fallback to DEFAULT_LANGUAGE by default. 2012-11-28 11:32:43 +01:00
Mihai Sucan
6b48b46685 Update modeltranslation/static/modeltranslation/js/tabbed_translation_fields.js
Add support for fields inside collapsed groups.
2012-11-27 15:49:32 +02:00
Dirk Eschler
2257fb0aa2 Enhanced admin tests for grouped fields inside a fieldsets definition. 2012-11-20 20:51:17 +01:00
Dirk Eschler
f38ab0ce6e Minor cleanups. 2012-11-20 20:48:26 +01:00
Dirk Eschler
ee380ec7b7 Handled nested lists to display multiple fields on same line by flatting them. 2012-11-20 01:02:12 +01:00
Dirk Eschler
c5836ce20f Updated changelog. 2012-11-18 23:00:47 +01:00
Dirk Eschler
e8355b0e94 Enhanced admin tests for readonly_fields. 2012-11-18 22:00:43 +01:00
Dirk Eschler
4dbbfee1ce Validated against flake8. 2012-11-18 21:36:10 +01:00
sbrandtb
afb9f5436d Fixed #111: Refactored TranslationBaseModelAdmin._patch_prepopulated_fields(). It now calculates "exclude" the same way ModelAdmin.get_form() does, including get_readonly_fields(). 2012-11-18 20:51:22 +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
Dirk Eschler
0e028f2713 Several documentation improvements. 2012-11-17 01:36:41 +01:00
Dirk Eschler
bf126e6c9e Updated supported fields matrix. 2012-11-16 17:15:12 +01:00
Dirk Eschler
fb1b58c7c0 Added broader exception handling in version determination to see if this fixes build problems on rtd. 2012-11-16 00:46:04 +01:00
Dirk Eschler
fcb56c9003 Adopted code from Django's development version to derive a PEP386-compliant version number from VERSION. We shouldn't reinvent the wheel. Includes support to add a git timestamp for dev snapshots if a .git directory is present. 2012-11-16 00:33:32 +01:00
Dirk Eschler
ae09abf76b Minor improvements and cleanups. 2012-11-15 23:22:33 +01:00
Dirk Eschler
b20496cb22 Merge pull request #113 from zlorf/metaclass_field_aggregation
TranslationOptions fields inheritance
2012-11-15 13:54:21 -08:00
Jacek Tomaszewski
c320c1e662 Add docs section about field inheritance. 2012-11-15 22:02:29 +01:00
Dirk Eschler
a64a92ea30 Merge pull request #112 from zlorf/minor-fixes
Minor fixes
2012-11-15 12:30:21 -08:00
Dirk Eschler
2e4265324d Added test for CommaSeparatedIntegerField and noted that it's implicitly supported as a subclass of CharField. 2012-11-15 21:29:02 +01:00
Jacek Tomaszewski
261818de8b Refactor SUPPORTED_FIELDS: delete IntegerField subclasses. 2012-11-15 20:53:24 +01:00
Jacek Tomaszewski
7e322d2ae8 Link to the latest docs in README. 2012-11-15 20:53:11 +01:00
Jacek Tomaszewski
0ede18c0c5 Fix field aggregation. 2012-11-15 20:34:20 +01:00
Bruno Tavares
2431e2a21a field aggregation when subclassing a TranslationOption 2012-11-15 18:26:56 +00:00
Dirk Eschler
e306c070d7 Merge branch 'master' of github.com:deschler/django-modeltranslation 2012-11-15 17:54:26 +01:00
Dirk Eschler
2599174939 Added a table of supported fields by modeltranslation version (work-in-progress). 2012-11-15 17:54:03 +01:00
Dirk Eschler
56461e76a8 Merge pull request #109 from mihaisucan/master
Fix db_type() exception in sync_translation_fields command
2012-11-15 05:53:13 -08:00
Mihai Sucan
2ffe539727 Update modeltranslation/management/commands/sync_translation_fields.py
Fix exception:

TypeError: db_type() got multiple values for keyword argument 'connection'

Explanation: http://stackoverflow.com/questions/7068057/explicit-argument-in-signature-does-not-work-very-odd
2012-11-15 14:47:19 +02:00
Dirk Eschler
69673e9578 Merge pull request #108 from tavaresb/refactor-translationfield
Clean up the namespace imports
2012-11-15 04:32:30 -08: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
0842323e27 Updated changelog. 2012-11-14 20:44:59 +01:00
Dirk Eschler
78a0863519 Updated rule2 wording. 2012-11-14 15:34:16 +01:00
Dirk Eschler
93db5f109b Reflected baseclass name of returned subclass in field factory. 2012-11-14 14:18:38 +01:00
Dirk Eschler
eb9f3d043e Merge pull request #104 from zlorf/master
Fallback languages
2012-11-14 03:17:14 -08:00
Dirk Eschler
e7db2af5db Started to reflect recent changes made regarding field access and (old) rule3 removal. 2012-11-13 21:16:48 +01:00
Jacek Tomaszewski
777867dcf7 Clarify resolution order. 2012-11-13 16:57:24 +01:00
Jacek Tomaszewski
dd92cf0115 Add more verbose test for fallback languages. 2012-11-13 16:45:44 +01:00
Jacek Tomaszewski
5b51a7b793 Add fallback language feature and base tests. 2012-11-13 16:28:42 +01:00
Jacek Tomaszewski
86cb1e0de2 Use namespaced settings values in utils. 2012-11-13 16:03:09 +01:00
Dirk Eschler
fa13563082 Added a empty _static directory to docs (alongside a useless .gitignore to allow to commit it with git). Suppresses a warning generated by sphinx. 2012-11-13 14:46:50 +01:00
Dirk Eschler
b2437741aa Used get_language from modeltranslation.utils. Otherwise the returned language isn't guaranteed to be in the LANGUAGES setting and the manager might rewrite the field name to something like foo_en_us. 2012-11-13 13:31:00 +01:00