Commit graph

842 commits

Author SHA1 Message Date
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
wrwrwr
54699c580b Separate registry for manager shouldn't be needed any longer -- the main registry caches options for all seen models.
Now it might be possible to optimize the manager by precomputing or caching ``fields_to_translatable_models`` on translation options (instances).
2013-02-10 18:28:00 +01:00
deschler
e5a574f26a Prepared 0.5 release. 2013-02-10 18:26:50 +01:00
deschler
a264663430 Added a README link to satisfy sdist. 2013-02-10 18:25:59 +01:00
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
Jacek Tomaszewski
8a20600d3a Flake8 fix. 2013-02-09 22:46:11 +01:00
Jacek Tomaszewski
9646b5b613 Use newest versions of Django. 2013-02-09 22:38:52 +01:00
Jacek Tomaszewski
3fa3d653d0 Remove unnecessary test methods. 2013-02-09 22:34:36 +01:00
Jacek Tomaszewski
09036c0946 Fix autodiscover tests. 2013-02-09 22:33:49 +01:00
Jacek Tomaszewski
458f3e2f8e Damned Python 2.5 decorators. 2013-02-09 20:49:54 +01:00
Jacek Tomaszewski
9871e64ea6 Add autodiscover tests. 2013-02-09 20:35:34 +01:00
Dirk Eschler
e94bbcd3d2 Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
Dirk Eschler
f18e744b13 Merge branch 'fix_get_fields_to_translatable_models' 2013-02-06 10:16:12 +01:00
deschler
d07ad3dba6 Updated contributors. 2013-02-03 18:54:57 +01:00
Dirk Eschler
f0602b9dcc Merge pull request #134 from wrwrwr/feature/starting-underscore-tabbed-admin-fix
Fix CSS class generation for fields starting with an underscore
2013-02-03 08:17:54 -08:00
Dirk Eschler
3f735b63d5 Merge pull request #135 from wrwrwr/feature/js-compute-grouped-translations-once
Avoid computing "grouped_translations" twice in tabbed admin script
2013-02-03 08:03:01 -08:00
Jacek Tomaszewski
3c9bae241e Fix descending order rewriting in all ordering calls. 2013-02-03 15:08:24 +01:00
Jacek Tomaszewski
5a9622efbf Update AUTHORS file. 2013-02-03 14:41:39 +01:00
Jacek Tomaszewski
18e70bb4e1 Merge pull request #133 from wrwrwr/feature/descending-order-with-translation-fix
Fix ``order_by`` on descending translation field
2013-02-03 05:36:02 -08:00
wrwrwr
c6c866ba70 Flake8, remove unused variables. 2013-02-03 14:24:02 +01:00
Dirk Eschler
af9895dac4 Iterate over translation fields only in get_fields_to_translatable_models. Potential fix for issue #132. 2013-02-01 10:45:52 +01:00
Dirk Eschler
4ad97b857a Included changelog in documentation. 2013-01-31 17:44:37 +01:00
wrwrwr
b42a9142ac Added a simple test that catches the descending order problem. 2013-01-31 17:42:20 +01:00
Dirk Eschler
1165962bc6 Updated changelog. 2013-01-31 17:32:41 +01:00
Dirk Eschler
7267e22864 Incremented year. 2013-01-31 17:06:02 +01:00
Dirk Eschler
3778ebe074 Removed github download link. 2013-01-31 16:53:41 +01:00
wrwrwr
3f7eb72d60 Remove / reattach '-' prefix from fields given to `order_by` for rewriting to work. 2013-01-31 16:34:53 +01:00
Dirk Eschler
d1cebfe41a Updated authors file. 2013-01-31 16:11:05 +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
wrwrwr
8ebc7a828e Test that CSS classes names are built properly. 2013-01-24 13:05:51 +01:00
wrwrwr
715b13a1e9 Do generate CSS class name for fields starting with an underscore (still seems to work with two-part codes). 2013-01-24 13:05:44 +01:00
wrwrwr
79165ed942 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
Dirk Eschler
8783eb5eeb Merge pull request #130 from novagile/download-url
Fix download URL in setup.py
2013-01-21 04:44:07 -08:00
Benoît Bryon
ea11a6d7a7 Fixed download URL in setup.py. 2013-01-21 11:21:27 +01:00
deschler
8a30ecdc2d Added a warning that LANGUAGES default to Django's global_settings if not defined in project settings. 2013-01-18 21:41:18 +01:00
Jacek Tomaszewski
1d82f61da8 Add doc section about fallbacks. 2013-01-12 16:00:32 +01:00
Jacek Tomaszewski
bc0ffb6332 Docs: remove unnecessary code-block directives. 2013-01-12 14:46:07 +01:00
Jacek Tomaszewski
08d71d4f0e Docs: fix headings levels. 2013-01-12 14:43:05 +01:00
Jacek Tomaszewski
4c1ac00097 Docs: use consistent settings ref names. 2013-01-12 14:35:38 +01:00
Jacek Tomaszewski
715be65892 Update AUTHORS: include Zach Mathew. 2013-01-11 21:04:05 +01:00
Dirk Eschler
b09223419a Merge pull request #126 from zlorf/doc_mm
MM docs
2013-01-10 14:49:23 -08:00
Jacek Tomaszewski
c30e7ba811 Fix MultilingualManager: add rewrite method on manager and optimize create. 2013-01-10 23:13:55 +01:00
Jacek Tomaszewski
1e93840398 Add docs section about Multilingual Manager 2013-01-10 23:12:45 +01:00
Dirk Eschler
335ac87d16 Merge pull request #125 from zlorf/update_fix2
Fix for custom QuerySets.
2013-01-08 07:42:27 -08:00
Jacek Tomaszewski
facfa3bcd7 Revert "Added a workaround for abstract models not being handled correctly."
This reverts commit a3e44c187b.
2013-01-08 12:17:44 +01:00
Jacek Tomaszewski
a7aeb3b689 Fix MultilingualQUerySet custom inheritance - part 2. 2013-01-08 12:17:23 +01:00
Jacek Tomaszewski
865f451953 Fix MultilingualQUerySet custom inheritance. 2013-01-07 18:02:15 +01:00
Dirk Eschler
a3e44c187b Added a workaround for abstract models not being handled correctly. See issue #123 for details. 2013-01-07 14:46:35 +01:00
Dirk Eschler
ab48b5a975 Fixed verbosity switch, which is used as an int but was not coerced. 2013-01-07 14:40:03 +01:00
Dirk Eschler
e7752b8bf5 Updated changelog. 2013-01-07 13:22:03 +01:00