deschler
a436d19fc4
Updated changelog.
2013-02-17 21:09:01 +01:00
deschler
9e09bdccbc
Moved update tab functionality to MainSwitch.
2013-02-17 19:23:50 +01:00
deschler
28f1a5eff2
Refactored MainSwitch into a singleton.
2013-02-17 16:59:34 +01:00
deschler
f262c5717a
Fixed some visual glitches in tabular inlines.
2013-02-17 14:03:31 +01:00
deschler
8d2a7a7798
Refactored tabular inline treatment. Introduced a new TabularInlineGroup which stores information about its contained table. It handles most the complexity like updating the table or retrieving its translation fields through a TranslationFieldGrouper. It can return either all translation fields for the initial regrouping of columns or translation fields based on a jquery selector to handle the add another links.
2013-02-17 12:50:04 +01:00
deschler
6f60e4110b
Merge branch 'master' into tabbed-tabular-inlines
2013-02-16 13:44:29 +01:00
deschler
7ff2a83240
Handled models that are used as inlines on the same page more than once.
2013-02-16 13:43:33 +01:00
deschler
bfc65c163f
Started work on support for tabular inlines in tabbed translation fields (issue #66 ).
2013-02-16 13:41:43 +01:00
Dirk Eschler
970dc71a5a
Merge branch 'tabbed-add-another'
2013-02-15 16:35:19 +01:00
Dirk Eschler
03d933050a
- Refactored the translation field grouping: Added a new reusable TranslationFieldGrouper which groups TranslationFields based on a fieldSelector parameter.
...
- Used camelCase consistently (this ain't Python).
2013-02-15 16:15:57 +01:00
Jacek Tomaszewski
079f745621
Small refactor in _join_css_class and its test.
2013-02-15 11:08:37 +01:00
deschler
057a34e2a0
Removed accidentally committed decorator leftover.
2013-02-15 01:00:09 +01:00
deschler
f8c5d46b7a
Simplified checks in _join_css_class and updated test to reflect the change (issue #141 ).
2013-02-15 00:57:55 +01:00
deschler
83b133049d
Fixed _join_css_class() doesn't take settings.LANGUAGES into account and fails with 'en-us'. Resolves issue #141 .
2013-02-14 22:15:00 +01:00
Dirk Eschler
3b99305965
Initial work issue #79 , where fields added through a add another link in stacked inlines aren't tabbed.
2013-02-14 17:56:16 +01:00
Jacek Tomaszewski
de205918ca
Fix descriptor test for mysql.
2013-02-13 15:59:32 +01:00
Dirk Eschler
c06134bff4
Merge branch 'master' of github.com:deschler/django-modeltranslation
2013-02-13 12:21:27 +01:00
Dirk Eschler
83a6333cd2
Added admin test for readonly fields only.
2013-02-13 12:21:21 +01:00
Dirk Eschler
9a6267838e
Added missing hook for get_readonly_fields. Potential fix for issue #140 .
2013-02-13 12:18:10 +01:00
Jacek Tomaszewski
f7759ba75a
Extract number of registered test models as constant.
2013-02-13 12:01:54 +01:00
Jacek Tomaszewski
14fdaa59fa
Add descriptor test.
2013-02-13 11:59:11 +01:00
Dirk Eschler
89bfa0bdbe
Updated changelog.
2013-02-13 11:34:20 +01:00
Dirk Eschler
f03d89d98d
Handled generic inlines and fixed the ids used for tabs.
2013-02-13 11:04:54 +01:00
deschler
f470d2399c
Fixed keys used in tabbed translation to group translations are not unique for inlines. A potential fix for issue #121 (work-in-progress).
2013-02-12 23:32:03 +01:00
Dirk Eschler
415ccdae9d
Updated changelog.
2013-02-12 16:06:51 +01:00
Dirk Eschler
4ca3c103e5
Fixed prepopulated fields only work on the first defined field and made function aware of the current language. Added a unittest to verify. Resolves issue #57 .
2013-02-12 15:53:00 +01:00
Dirk Eschler
22cf573724
Used code blocks consistently.
2013-02-12 14:06:39 +01:00
Dirk Eschler
8e8e9a3bbc
Fixed missing newline.
2013-02-12 14:05:00 +01:00
Dirk Eschler
66c8153bc8
Added documentation for the TranslationAdmin.group_fieldsets option.
2013-02-12 14:04:43 +01:00
Dirk Eschler
401d66dd41
Updated changelog.
2013-02-12 12:55:58 +01:00
Dirk Eschler
2ab73babe0
Small optimization, don't loop twice over trans_fields.
2013-02-12 12:33:33 +01:00
Dirk Eschler
966d5ee962
Added unittest for group-fieldsets functionality in TranslationAdmin.
2013-02-12 12:20:32 +01:00
Dirk Eschler
6c66cec35e
Honoured options like exclude for translation fields and assured that we don't end up with empty fields in untranslated fieldsets.
2013-02-12 12:17:27 +01:00
Dirk Eschler
70c0d8bc90
Updated contributors.
2013-02-12 10:53:31 +01:00
Dirk Eschler
e6b05d1a7f
Sorted translation fields by fieldname.
2013-02-12 10:40:26 +01:00
Dirk Eschler
dbcff0d2df
Moved group_fieldsets to class.
2013-02-12 10:30:00 +01:00
deschler
9996ef39cd
Added a new group_fieldsets option to TranslationAdmin to group fieldsets by translation fields. An approach to issue #38 . Based on initial code by Chris Adams. Adopted and enhanced for the latest admin refactoring. The new option currently defaults to False and has to be activated on demand.
2013-02-11 22:29:58 +01:00
Dirk Eschler
3cca88e336
Updated changelog.
2013-02-11 12:39:15 +01:00
Dirk Eschler
b5d1fdf9c8
Incremented version number.
2013-02-11 12:28:39 +01:00
Dirk Eschler
48ceae54b7
Added admin test for multitable inheritance to verify that issue #50 was resolved by pull request #137 .
2013-02-11 12:16:03 +01:00
Dirk Eschler
d78570930b
Merge branch 'master' of github.com:deschler/django-modeltranslation
2013-02-11 11:57:15 +01:00
Dirk Eschler
8ff3b3731a
Fixed messed up multitable test model names.
2013-02-11 11:53:01 +01:00
Dirk Eschler
a78639ad63
Merge pull request #137 from wrwrwr/feature/translation-fields-inheritance
...
Translation fields inheritance
2013-02-11 02:34:57 -08:00
Dirk Eschler
3889755572
Merge branch 'feature/translation-fields-inheritance' of https://github.com/wrwrwr/django-modeltranslation
2013-02-11 11:00:03 +01:00
wrwrwr
ce59c16e4f
Flake8, unused variable and import.
2013-02-10 19:05:59 +01:00
deschler
bedd18ea9e
Updated changelog.
2013-02-10 18:36:48 +01:00
wrwrwr
11045e8ffb
Small cleanup in `FieldsAggregationMetaClass`. The manual inheritance syntax is left mostly for backwards compatibility.
2013-02-10 18:32:22 +01:00
wrwrwr
36c5d0b81a
Test registration and translation fields inheritance with a more complex model hierarchy (inspired by Mezzanine).
2013-02-10 18:32:17 +01:00
wrwrwr
772d51c1c3
Adapt admin to new translation options, allowing it to manage translation fields inherited from concrete supermodels.
...
``TranslationOptions.localized_fieldnames_rev`` is no longer available, but should be replaceable by field.translated_field (may be readded as a ``TranslationOptions`` method if it's useful for something).
2013-02-10 18:28:06 +01:00
wrwrwr
6ba37ec8c2
Adapt management commands and a debug message (by using `get_registered_models rather than directly registry`).
2013-02-10 18:28:06 +01:00