django-modeltranslation/modeltranslation
wrwrwr 30b6768f0f Refactor translation options to be able to keep track of translation fields inherited from concrete supermodels and find fields inherited indirectly (through unregistered parents). Ensure that a base is not registered after or unregistered before submodel (that would necessitate repatching the submodel).
This changes how _registry looks, now info about all seen models is stored (including unregistered ascendants of registered models), to avoid recomputing parents options when determining translation fields of a submodel. ``TranslationOption`` instances have just two dictionaries of fields: ``local_fields`` (similar to the former ``localized_fieldnames``) and ``fields`` to match Django naming and precompute only what's necessary.
2013-02-10 18:23:35 +01:00
..
management Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
static/modeltranslation Avoid computing "grouped_translations" twice (for tabs and the main switch) in the tabbed translation admin script (the second computation was missing some languages under certain circumstances). 2013-01-24 13:00:32 +01:00
tests Flake8 fix. 2013-02-09 22:46:11 +01:00
__init__.py Prepared 0.5b1 release. 2013-01-07 11:10:28 +01:00
admin.py Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
fields.py Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
manager.py Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
models.py Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
settings.py Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
translator.py Refactor translation options to be able to keep track of translation fields inherited from concrete supermodels and find fields inherited indirectly (through unregistered parents). Ensure that a base is not registered after or unregistered before submodel (that would necessitate repatching the submodel). 2013-02-10 18:23:35 +01:00
utils.py Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00