[Python-modules-commits] [django-modeltranslation] 01/05: Imported Upstream version 0.10
Raphaël Hertzog
hertzog at moszumanska.debian.org
Mon Jun 27 21:05:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
hertzog pushed a commit to branch master
in repository django-modeltranslation.
commit 07b0a276ec564d6768591ff0c6ce47377ecc5c87
Author: Sophie Brun <sophie at freexian.com>
Date: Mon Jun 27 10:39:03 2016 +0200
Imported Upstream version 0.10
---
AUTHORS.rst | 47 ++
CHANGELOG.txt | 599 +++++++++++++++++++++
LICENSE.txt | 26 +
PKG-INFO | 24 +
README | 1 +
README.rst | 57 ++
docs/modeltranslation/Makefile | 153 ++++++
docs/modeltranslation/admin.rst | 335 ++++++++++++
docs/modeltranslation/authors.rst | 1 +
docs/modeltranslation/caveats.rst | 31 ++
docs/modeltranslation/changelog.rst | 4 +
docs/modeltranslation/commands.rst | 91 ++++
docs/modeltranslation/conf.py | 316 +++++++++++
docs/modeltranslation/contribute.rst | 129 +++++
docs/modeltranslation/forms.rst | 97 ++++
docs/modeltranslation/index.rst | 29 +
docs/modeltranslation/installation.rst | 395 ++++++++++++++
docs/modeltranslation/make.bat | 190 +++++++
docs/modeltranslation/readme.rst | 1 +
docs/modeltranslation/registration.rst | 372 +++++++++++++
docs/modeltranslation/related_projects.rst | 58 ++
docs/modeltranslation/usage.rst | 370 +++++++++++++
modeltranslation/__init__.py | 65 +++
modeltranslation/admin.py | 407 ++++++++++++++
modeltranslation/apps.py | 11 +
modeltranslation/decorators.py | 25 +
modeltranslation/fields.py | 379 +++++++++++++
modeltranslation/forms.py | 40 ++
modeltranslation/management/__init__.py | 0
modeltranslation/management/commands/__init__.py | 0
modeltranslation/management/commands/loaddata.py | 61 +++
.../management/commands/sync_translation_fields.py | 136 +++++
.../commands/update_translation_fields.py | 33 ++
modeltranslation/manager.py | 533 ++++++++++++++++++
modeltranslation/models.py | 85 +++
modeltranslation/settings.py | 56 ++
.../css/tabbed_translation_fields.css | 94 ++++
.../static/modeltranslation/js/clearable_inputs.js | 16 +
.../static/modeltranslation/js/force_jquery.js | 3 +
.../js/tabbed_translation_fields.js | 423 +++++++++++++++
modeltranslation/translator.py | 555 +++++++++++++++++++
modeltranslation/utils.py | 177 ++++++
modeltranslation/widgets.py | 107 ++++
setup.py | 43 ++
44 files changed, 6575 insertions(+)
diff --git a/AUTHORS.rst b/AUTHORS.rst
new file mode 100644
index 0000000..f232ee9
--- /dev/null
+++ b/AUTHORS.rst
@@ -0,0 +1,47 @@
+Authors
+=======
+
+Core Committers
+---------------
+
+* Peter Eschler <peschler at gmail.com> (retired)
+* Dirk Eschler <eschler at gmail.com>
+* Jacek Tomaszewski <jacek.tomek at gmail.com>
+
+Contributors
+------------
+
+* Carl J. Meyer
+* Jaap Roes
+* Bojan Mihelac
+* Sébastien Fievet
+* Bruno Tavares
+* Zach Mathew (of django-linguo_, initial author of ``MultilingualManager``)
+* Mihai Sucan
+* Benoît Bryon
+* Wojtek Ruszczewski
+* Chris Adams
+* Dominique Lederer
+* Braden MacDonald
+* Karol Fuksiewicz
+* Konrad Wojas
+* Bas Peschier
+* Oleg Prans
+* Francesc Arpí Roca
+* Mathieu Leplatre
+* Thom Wiggers
+* Warnar Boekkooi
+* Alex Marandon
+* Fabio Caccamo
+* Vladimir Sinitsin
+* Luca Corti
+* Morgan Aubert
+* Mathias Ettinger
+* Daniel Loeb
+* Stephen McDonald
+* Lukas Lundgren
+* zenoamaro
+* oliphunt
+* And many more ... (if you miss your name here, please let us know!)
+
+.. _django-linguo: https://github.com/zmathew/django-linguo
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
new file mode 100644
index 0000000..a148df2
--- /dev/null
+++ b/CHANGELOG.txt
@@ -0,0 +1,599 @@
+v0.10.0
+=======
+Date: 2015-07-03
+
+ ADDED: CSS support for bi-directional languages to TranslationAdmin
+ using mt-bidi class.
+ (resolves issue #317, thanks oliphunt)
+ ADDED: A decorator to handle registration of models.
+ (resolves issue #318, thanks zenoamaro)
+
+ FIXED: Handled annotation fields when using values_list.
+ (resolves issue #321, thanks Lukas Lundgren)
+
+
+v0.9.1
+======
+Date: 2015-05-14
+
+ FIXED: Handled deprecation of _meta._fill_fields_cache() for Django 1.8
+ in add_translation_fields.
+ (resolves issue #304, thanks Mathias Ettinger and Daniel Loeb)
+ FIXED: Handled deprecation of transaction.commit_unless_managed for
+ Django 1.8 in sync_translation_fields management command.
+ (resolves issue #310)
+ FIXED: Fixed translatable fields discovery with the new _meta API and
+ generic relations for Django 1.8.
+ (resolves issue #309, thanks Morgan Aubert)
+
+
+v0.9
+====
+Date: 2015-04-16
+
+ ADDED: Support for Django 1.8 and the new meta API.
+ (resolves issue #299, thanks Luca Corti and Jacek Tomaszewski)
+
+
+v0.8.1
+======
+Date: 2015-04-02
+
+ FIXED: Using a queryset with select related.
+ (resolves issue #298, thanks Vladimir Sinitsin)
+ FIXED: Added missing jquery browser plugin.
+ (resolves issue #270, thanks Fabio Caccamo)
+ FIXED: Deprecated imports with Django >= 1.7
+ (resolves issue #283, thanks Alex Marandon)
+
+
+v0.8
+====
+Date: 2014-10-06
+
+ FIXED: JavaScript scoping issue with two jQuery versions in tabbed
+ translation fields.
+ (resolves issue #267,
+ thanks Wojtek Ruszczewski)
+
+ ADDED: Patch db_column of translation fields in migration files.
+ (resolves issue #264,
+ thanks Thom Wiggers and Jacek Tomaszewski)
+ ADDED: Fallback to values and values_list.
+ (resolves issue #258,
+ thanks Jacek Tomaszewski)
+
+
+v0.8b2
+======
+Date: 2014-07-18
+
+ ADDED: Explicit support for Python 3.4 (should have already worked for
+ older versions that supported Python 3).
+ (resolves issue #254)
+ ADDED: Support for Django 1.7 migrations.
+
+ FIXED: Dict iteration Exception under Python 3.
+ (resolves issue #256,
+ thanks Jacek Tomaszewski)
+ FIXED: Reduce usage under Python 3.
+ (thanks Jacek Tomaszewski)
+ FIXED: Support for AppConfigs in INSTALLED_APPS
+ (resolves issue #252,
+ thanks Warnar Boekkooi, Jacek Tomaszewski)
+ FIXED: Rewrite field names in select_related. Fix deffered models registry.
+ Rewrite spanned queries on all levels for defer/only.
+ (resolves issue #248,
+ thanks Jacek Tomaszewski)
+
+
+v0.8b1
+======
+Date: 2014-06-22
+
+ ADDED: Detect custom get_queryset on managers.
+ (resolves issue #242,
+ thanks Jacek Tomaszewski)
+ ADDED: Support for Django 1.7 and the new app-loading refactor.
+ (resolves issue #237)
+ ADDED: Added required_languages TranslationOptions
+ (resolves issue #143)
+
+ FIXED: Fixed sync_translation_fields to be compatible with PostgreSQL.
+ (resolves issue #247,
+ thanks Jacek Tomaszewski)
+ FIXED: Manager .values() with no fields specified behaves as expected.
+ (resolves issue #247)
+ FIXED: Fieldset headers are not capitalized when group_fieldsets is enabled.
+ (resolves issue #234,
+ thanks Jacek Tomaszewski)
+ FIXED: Exclude for nullable field manager rewriting.
+ (resolves issue #231,
+ thanks Jacek Tomaszewski)
+ FIXED: Use AVAILABLE_LANGUAGES in sync_translation_fields management
+ command to detect missing fields.
+ (resolves issue #227,
+ thanks Mathieu Leplatre)
+ FIXED: Take db_column into account while syncing fields
+ (resolves issue #225,
+ thanks Mathieu Leplatre)
+
+CHANGED: Moved to get_queryset, which resolves a deprecation warning.
+ (resolves issue #244,
+ thanks Thom Wiggers)
+CHANGED: Considered iframes in tabbed_translation_fields.js to support
+ third party apps like django-summernote.
+ (resolves issue #229,
+ thanks Francesc Arpí Roca)
+CHANGED: Removed the http protocol from jquery-ui url in admin Media class.
+ (resolves issue #224,
+ thanks Francesc Arpí Roca)
+
+
+v0.7.3
+======
+Date: 2014-01-05
+
+ ADDED: Documentation for TranslationOptions fields reference and
+ south/sync_translation_fields.
+
+ FIXED: Some python3 compatibility issues.
+ (thanks Jacek Tomaszewski,
+ resolves issue #220)
+ FIXED: Clearing translated FileFields does not work with easy_thumbnails.
+ (thanks Jacek Tomaszewski,
+ resolves issue #219)
+ FIXED: Compatibility with nested inlines.
+ (thanks abstraktor,
+ resolves issue #218)
+ FIXED: Admin inlines recursion problem in Django 1.6.
+ (thanks Oleg Prans,
+ resolves issue #214)
+ FIXED: Empty FileField handling.
+ (thanks Jacek Tomaszewski,
+ resolves issue #215)
+
+
+v0.7.2
+======
+Date: 2013-11-11
+
+ ADDED: Documentation about empty_values.
+ (thanks Jacek Tomaszewski,
+ resolves issue #211)
+
+ FIXED: Proxy model handling.
+ (thanks Jacek Tomaszewsk)
+ FIXED: Abstract managers patching.
+ (thanks Jacek Tomaszewski,
+ resolves issue #212)
+
+
+v0.7.1
+======
+Date: 2013-11-07
+Packaged from revision f7c7ea174344f3dc0cf56ac3bf6e92878ed6baea
+
+ ADDED: Configurable formfields. The ultimate approach to nullable CharFields.
+ (thanks Jacek Tomaszewski,
+ resolves issue #211, ref #163, #187)
+
+ FIXED: Recursion problem with fieldset handling in Django 1.6.
+ (thanks to Bas Peschier,
+ resolves issue #214)
+
+
+v0.7
+====
+Date: 2013-10-19
+Packaged from revision 89f5e6712aaf5d5ec7e2d61940dc1a71fb08ca94
+
+ ADDED: A setting to control which language are slug fields based on
+ (thanks to Konrad Wojas,
+ resolves issue #194)
+ ADDED: A noinput option to the sync_translation_fields management command.
+ (thanks to cuchac,
+ resolves issues #179 and #184)
+ ADDED: Support for Python 3.2 and 3.3.
+ (thanks to Karol Fuksiewicz,
+ resolves issue #174)
+ ADDED: Convenient admin classes which already contain proper Media
+ definitions.
+ (resolves issue #171)
+ ADDED: Only, defer, values, values_list, dates, raw_values methods to
+ MultilingualManager.
+ (resolves issue #166 adn #173)
+ ADDED: Support for ForeignKey and OneToOneField.
+ (thanks to Braden MacDonald and Jacek Tomaszewski,
+ resolves issue #161)
+ ADDED: An auto-population option to the loaddata command.
+ (resolves issue #160)
+ ADDED: A MODELTRANSLATION_LOADDATA_RETAIN_LOCALE setting for loaddata
+ command to leave locale alone.
+ (resolves issue #151)
+
+ FIXED: Compatibility with Django 1.6 development version.
+ (resolves issue #169)
+ FIXED: Handling of 3rd party apps' ModelForms.
+ (resolves issue #167)
+ FIXED: Triggering field fallback on its default value rather than empty
+ string only. Also enhance nullable fields in forms with proper
+ widgets to preserve ``None``.
+ (thanks to Wojtek Ruszczewski,
+ resolves issue #163)
+ FIXED: Admin prepopulated_fields is now handled properly.
+ (thanks to Rafleze,
+ resolves issue #181 and #190)
+ FIXED: Form saving when translated field is excluded (e.g. in admin)
+ (resolves issue #183)
+ FIXED: Multilingual clones are Multilingual too.
+ (resolved issue #189)
+
+CHANGED: Every model's manager is patched as MultiLingual, not only objects.
+ (resolved issue #198)
+CHANGED: Display "make null" checkboxes in model forms.
+CHANGED: MODELTRANSLATION_DEBUG setting defaults to False instead of
+ settings.DEBUG.
+CHANGED: Drop support for Python 2.5 and Django 1.3.
+
+
+v0.6.1
+======
+Date: 2013-03-17
+Packaged from revision fc8a3034897b8b818c74f41c43a92001e536d970
+
+ FIXED: Joined query does not use translated fields.
+ (resolves issue #162)
+
+
+v0.6
+====
+Date: 2013-03-01
+Packaged from revision ea0e2db68900371146d39dcdf88b29091ee5222f
+
+ ADDED: A new ENABLE_FALLBACKS setting and a context manager for switching
+ fallbacks temporarily.
+ (thanks to Wojtek Ruszczewski,
+ resolves issue #152)
+ ADDED: Major refactoring of the tabbed translation fields javascript. Adds
+ support for tabular inlines and includes proper handling of stacked
+ inlines, which have never been officially supported, but were not
+ actively prevented from being tabbified.
+ (resolves issue #66)
+ ADDED: New group_fieldsets option for TranslationAdmin. When activated
+ translation fields and untranslated fields are automatically
+ grouped into fieldsets.
+ (based on original implementation by Chris Adams,
+ resolves issues #38)
+
+ FIXED: Tests to run properly in the scope of a Django project.
+ (thanks to Wojtek Ruszczewski,
+ resolves issue #153)
+ FIXED: Broken tab activation when using jquery-ui 1.10, keeping support for
+ older jquery-ui versions and the jquery version shipped by Django.
+ (thanks to Dominique Lederer,
+ resolves issue #146)
+ FIXED: Wrong admin field css class for en-us language.
+ (resolves issue #141)
+ FIXED: Added missing hook for admin readonly_fields.
+ (resolves issue #140)
+ FIXED: Keys used in tabbed translation fields to group translations are not
+ unique for inlines.
+ (resolves issue #121)
+ FIXED: The prepopulated_fields TranslationAdmin option only works on the
+ first defined field to prepopulate from and made the option aware
+ of the current language.
+ (resolves issue #57)
+
+CHANGED: Removed deprecated MODELTRANSLATION_TRANSLATION_REGISTRY setting.
+CHANGED: Refactored auto population manager functionality. Switched to a
+ populate method in favour of the old _populate keyword and added a new
+ contextmanager to switch the population mode on demand.
+ (thanks to Wojtek Ruszczewski,
+ resolves issue #145)
+CHANGED: Major refactoring of translation field inheritance and
+ TranslationOptions.
+ (thanks to Wojtek Ruszczewski,
+ resolves issues #50 and #136)
+
+
+v0.5
+====
+Date: 2013-02-10
+Packaged from revision bedd18ea9e338b133d06f2ed5e7ebfc2e21fd276
+
+ ADDED: Merged autodiscover tests from django-modeltranslation-wrapper.
+ ADDED: Rewrite method to MultilingualManager and optimized create.
+
+ FIXED: grouped_translations are computed twice in tabbed translations.
+ (thanks to Wojtek Ruszczewski,
+ resolves issue #135)
+ FIXED: CSS classes in tabbed translation fields when fieldname has a leading
+ underscore.
+ (thanks to Wojtek Ruszczewski,
+ resolves issue #134)
+ FIXED: Rewriting of descending ('-' prefixed) ordering fields in
+ MultilingualManager.
+ (thanks to Wojtek Ruszczewski,
+ resolves issue #133)
+ FIXED: Download url in setup.py.
+ (thanks to Benoît Bryon,
+ resolves issue #130)
+ FIXED: The update_translation_fields management command does nothing.
+ (resolves issue #123)
+ FIXED: MultilingualQuerySet custom inheritance.
+
+CHANGED: Don't raise an exception if TranslationField is accessed via class
+ to allow descriptor introspection.
+ (resolves issue #131)
+
+
+v0.5b1
+======
+Date: 2013-01-07
+Packaged from revision da928dd431fcf112e2e9c4c154c5b69e7dadc3b3.
+
+ ADDED: Possibility to turn off query rewriting in MultilingualManager.
+ (thanks to Jacek Tomaszewski)
+
+ FIXED: Fixed update_translation_fields management command.
+ (thanks to Jacek Tomaszewski,
+ resolves issues #123 and #124)
+
+CHANGED: Major test refactoring.
+ (thanks to Jacek Tomaszewski,
+ resolves issues #100 and #119)
+
+
+v0.5a1
+======
+Date: 2012-12-05
+Packaged from revision da4aeba0ea20ddbee67aa49bc90af507997ac386.
+
+ ADDED: Increased the number of supported fields. Essentially all Django
+ model fields and subclasses of them should work, except related
+ fields (ForeignKey, ManyToManyField, OneToOneField) and AutoField
+ which are not supported.
+ ADDED: A subclass of TranslationOptions inherits fields from its bases.
+ (thanks to Bruno Tavares and Jacek Tomaszewski,
+ resolves issue #110)
+ ADDED: Support for fallback languages. Allows fine grained configuration
+ through project settings and TranslationOptions on model basis.
+ (thanks to Jacek Tomaszewski,
+ resolves issue #104)
+ ADDED: Multilingual manager which is aware of the current language.
+ (thanks to Jacek Tomaszewski,
+ resolves issues #45, #78 and #84)
+
+CHANGED: Version code to use a PEP386 compliant version number.
+CHANGED: Constructor rewrites fields to be language aware.
+ (thanks to Jacek Tomaszewski,
+ resolves issues #33 and #58)
+
+ FIXED: Lacking support for readonly_fields in TranslationAdmin.
+ (thanks to sbrandtb,
+ resolves issue #111)
+ FIXED: Model's db_column option is not applied to the translation field.
+ (resolves issue #83)
+ FIXED: Admin prevents saving a cleared field. The fix deactivates rule3 and
+ implies the new language aware manager and constructor rewrite.
+ (resolves issue #85)
+
+
+v0.4.1
+======
+Date: 2012-11-13
+Packaged from revision d9bf9709e9647fb2af51fc559bbe356010bd51ca.
+
+ FIXED: Pypi wants to install beta version. Happened because pypi treats
+ 0.4.0-beta2 as latest release. This also effectively resulted in a
+ downgrade when using 'pip --upgrade' and 0.4.0 was already installed.
+ (thanks to jmagnusson for the report,
+ resolves issue #103)
+
+v0.4.0
+======
+Date: 2012-11-11
+Packaged from revision c44f9cfee59f1b440f022422f917f247e16bbc6b.
+
+CHANGED: Refactored tests to allow test runs with other apps. Includes a
+ "backport" of override_settings to ensure Django 1.3 support.
+ (thanks to Jacek Tomaszewski)
+CHANGED: Modeltranslation related css class prefix to 'mt'.
+
+ FIXED: Race condition during initialization.
+ (resolves issue #91)
+ FIXED: Tabs don't properly support two-part language codes.
+ (resolves issue #63)
+
+
+v0.4.0-beta2
+============
+Date: 2012-10-17
+Packaged from revision 7b8cafbde7b14afc8e85235e9b087889a6bfa86e.
+
+ FIXED: Release doesn't include rst files.
+
+
+v0.4.0-beta1
+============
+Date: 2012-10-17
+Packaged from revision 09a0c4434a676c6fd753e6dcde95056c424db62e.
+
+CHANGED: Refactored documentation using sphinx.
+ (resolves issue #81)
+
+ FIXED: Setting MODELTRANSLATION_TRANSLATION_FILES should be optional.
+ (resolves issue #86)
+
+
+v0.4.0-alpha1
+=============
+Date: 2012-10-12
+Packaged from revision 170.
+
+ ADDED: Support for FileField and ImageField.
+ (thanks to Bruno Tavares,
+ resolves issue #30)
+ ADDED: New management command sync_database_fields to sync the database after
+ a new model has been registered or a new language has been added.
+ (thanks to Sébastien Fievet and the authors of django-transmeta,
+ resolves issue #62)
+
+CHANGED: Excluded tabular inlines from jQuery tabs, as they are currently
+ not supported.
+CHANGED: Use app-level translation files in favour of a single project-level
+ one. Adds an autoregister feature similiar to the one provided by
+ Django's admin. A new setting MODELTRANSLATION_TRANSLATION_FILES keeps
+ backwards compatibility with older versions. See documentation for
+ details. This is basically a merge from both
+ django-modeltranslation-wrapper and hyperweek's branch at github.
+ (thanks to Jacek Tomaszewski, Sébastien Fievet and Maxime Haineault,
+ resolves issues #19, #58 and #71)
+CHANGED: Moved tests to separate folder and added tests for TranslationAdmin.
+ To run the tests the settings provided in model.tests.modeltranslation
+ have to be used (settings.LANGUAGES override doesn't work for
+ TranslationAdmin).
+CHANGED: Major refactoring of the admin integration. Subclassed BaseModelAdmin
+ and InlineModelAdmin. Patching options in init doesn't seem to be
+ thread safe. Instead used provided hooks like get_form, get_formset
+ and get_fieldsets. This should resolve several problems with the
+ exclude and fieldsets options and properly support options in inlines.
+ (resolves issue #72)
+
+ FIXED: Non-unicode verbose field names showing up empty in forms.
+ (resolves issue #35)
+ FIXED: Dynamic TranslationOptions model name.
+ FIXED: Widgets for translated fields are not properly copied from original
+ fields.
+ (thanks to boris-chervenkov, resolves issue #74)
+ FIXED: Removed XMLField test which is deprecated since Django 1.3 and
+ broke tests in Django 1.4.
+ (resolves issue #75)
+
+
+v0.3.3
+======
+Date: 2012-02-23
+Packaged from revision 129.
+
+CHANGED: jQuery search path in tabbed_translation_fields.js. This allows use of
+ a version of jQuery other than the one provided by Django. Users who
+ want to force the use of Django's jQuery can include force_jquery.js.
+
+ FIXED: Another attempt to include static files during installation.
+ (resolves reopened issue #61)
+
+
+v0.3.2
+======
+Date: 2011-06-16
+Packaged from revision 122.
+
+ FIXED: Static files not included during installation.
+ (resolves issue #61)
+
+
+v0.3.1
+======
+Date: 2011-06-07
+Packaged from revision 121.
+
+CHANGED: Renamed media folder to static.
+
+
+v0.3
+====
+Date: 2011-06-03
+Packaged from revision 113.
+
+ ADDED: Support for multi-table inheritance.
+ (thanks to Sébastien Fievet, resolves issues #50 and #51)
+ ADDED: Jquery-ui based admin support for tabbed translation fields.
+ (thanks to jaap and adamsc, resolves issue #39)
+ ADDED: CSS class to identify a translation field and the default translation
+ field in admin.
+ (thanks to jaap)
+ ADDED: Configurable default value per field instance.
+ (thanks to bmihelac, resolves issue #28)
+ ADDED: Setting to override the default language.
+ (thanks to jaap, resolves issue #2)
+
+CHANGED: Improved performance of update_translation_fields command.
+ (thanks to adamsc, resolves issue #43)
+CHANGED: Factored out settings into a separate settings.py and consistently
+ used an app specific settings prefix.
+CHANGED: Refactored creation of translation fields and added handling of
+ supported fields.
+ (resolves issue #37)
+
+ FIXED: Clearing the default translation field in admin does not clear the
+ original field.
+ (resolves issue #47)
+ FIXED: In some setups appears "This field is required" error for the
+ original field.
+ (resolves issue #5)
+ FIXED: Translations are not saved for tinymce HTMLField when using jquery
+ tabs.
+ (thanks to kottenator, resolves issue #41)
+ FIXED: Fieldname isn't ensured to be string.
+ (resolves issue #41)
+ FIXED: Kept backwards compatibility with Django-1.0.
+ (thanks to jaap, resolves issue #34)
+ FIXED: Regression in south_field_triple caused by r55.
+ (thanks to jaap, resolves issue #29)
+ FIXED: TranslationField pre_save does not get the default language
+ correctly.
+ (thanks to jaap, resolves issue #31)
+
+
+v0.2
+====
+Date: 2010-06-15
+Packaged from revision 57.
+
+ ADDED: Support for admin prepopulated_fields.
+ (resolves issue #21)
+ ADDED: Support for admin list_editable.
+ (thanks carl.j.meyer, resolves issue #20)
+ ADDED: Preserve the formfield widget of the translated field.
+ (thanks piquadrat)
+ ADDED: Initial support for django-south.
+ (thanks andrewgodwin, resolves issue #11)
+ ADDED: Support for admin inlines, common and generic.
+ (resolves issue #12 and issue #18)
+
+ FIXED: Admin form validation errors with empty translated values and
+ unique=True.
+ (thanks to adamsc, resolves issue #26)
+ FIXED: Mangling of untranslated prepopulated fields.
+ (thanks to carl.j.meyer, resolves issue #25)
+ FIXED: Verbose names of translated fields are not translated.
+ (thanks to carl.j.meyer, resolves issue #24)
+ FIXED: Race condition between model import and translation registration in
+ production by ensuring that models are registered for translation
+ before TranslationAdmin runs.
+ (thanks to carl.j.meyer, resolves issue #19)
+ FIXED: Added workaround for swallowed ImportErrors by printing a traceback
+ explicitly.
+ (resolves issue #17)
+ FIXED: Only print debug statements to stdout if the runserver or
+ runserver_plus management commands are used.
+ (resolves issue #16)
+ FIXED: Removed print statements so that modeltranslation is usable with
+ mod_wsgi.
+ (resolves issue #7)
+ FIXED: Broken admin fields and fieldsets.
+ (thanks simoncelen, resolves issue #9)
+ FIXED: Creation of db fields with invalid python language code.
+ (resolves issue #4)
+ FIXED: Tests to run from any project.
+ (thanks carl.j.meyer, resolves issue #6)
+ FIXED: Removed unused dependency to content type which can break syncdb.
+ (thanks carl.j.meyer, resolves issue #1)
+
+
+v0.1
+====
+Date: 2009-02-22
+Initial release packaged from revision 19.
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..07896dd
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,26 @@
+Copyright (c) 2012, 2011, 2010, 2009, Peter Eschler, Dirk Eschler
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of the author nor the names of its contributors may be
+ used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..5ea8f46
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,24 @@
+Metadata-Version: 1.1
+Name: django-modeltranslation
+Version: 0.10
+Summary: Translates Django models using a registration approach.
+Home-page: https://github.com/deschler/django-modeltranslation
+Author: Dirk Eschler
+Author-email: eschler at gmail.com
+License: New BSD
+Download-URL: https://github.com/deschler/django-modeltranslation/archive/0.10.tar.gz
+Description: The modeltranslation application can be used to translate dynamic content of existing models to an arbitrary number of languages without having to change the original model classes. It uses a registration approach (comparable to Django's admin app) to be able to add translations to existing or new projects and is fully integrated into the Django admin backend.
+Platform: UNKNOWN
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Operating System :: OS Independent
+Classifier: Environment :: Web Environment
+Classifier: Intended Audience :: Developers
+Classifier: Framework :: Django
+Classifier: License :: OSI Approved :: BSD License
+Requires: django(>=1.4)
diff --git a/README b/README
new file mode 120000
index 0000000..92cacd2
--- /dev/null
+++ b/README
@@ -0,0 +1 @@
+README.rst
\ No newline at end of file
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..53b79df
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,57 @@
+================
+Modeltranslation
+================
+
+The modeltranslation application is used to translate dynamic content of
+existing Django models to an arbitrary number of languages without having to
+change the original model classes. It uses a registration approach (comparable
+to Django's admin app) to be able to add translations to existing or new
+projects and is fully integrated into the Django admin backend.
+
+The advantage of a registration approach is the ability to add translations to
+models on a per-app basis. You can use the same app in different projects,
+may they use translations or not, and you never have to touch the original
+model class.
+
+
+.. image:: http://img.shields.io/travis/deschler/django-modeltranslation/master.png?style=flat-square
+ :target: https://travis-ci.org/deschler/django-modeltranslation
+
+.. image:: http://img.shields.io/coveralls/deschler/django-modeltranslation.png?style=flat-square
+ :target: https://coveralls.io/r/deschler/django-modeltranslation
+
+.. image:: https://img.shields.io/pypi/v/django-modeltranslation.svg?style=flat-square
+ :target: https://pypi.python.org/pypi/django-modeltranslation/
+ :alt: Latest PyPI version
+
+.. image:: https://img.shields.io/pypi/pyversions/django-modeltranslation.svg?style=flat-square
+ :target: https://pypi.python.org/pypi/django-modeltranslation/
+ :alt: Supported Python versions
+
+.. image:: https://img.shields.io/pypi/dm/django-modeltranslation.svg?style=flat-square
+ :target: https://pypi.python.org/pypi/django-modeltranslation/
+ :alt: Number of PyPI downloads
+
+
+Features
+========
+
+- Add translations without changing existing models or views
+- Translation fields are stored in the same table (no expensive joins)
+- Supports inherited models (abstract and multi-table inheritance)
+- Handle more than just text fields
+- Django admin integration
+- Flexible fallbacks, auto-population and more!
+
+
+Project Home
+------------
+https://github.com/deschler/django-modeltranslation
+
+Documentation
+-------------
+https://django-modeltranslation.readthedocs.org/en/latest
+
+Mailing List
+------------
+http://groups.google.com/group/django-modeltranslation
diff --git a/docs/modeltranslation/Makefile b/docs/modeltranslation/Makefile
new file mode 100644
index 0000000..f0aad6b
--- /dev/null
+++ b/docs/modeltranslation/Makefile
@@ -0,0 +1,153 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS =
+SPHINXBUILD = sphinx-build
+PAPER =
+BUILDDIR = _build
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
+
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " singlehtml to make a single large HTML file"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " devhelp to make HTML files and a Devhelp project"
+ @echo " epub to make an epub"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
+ @echo " text to make text files"
+ @echo " man to make manual pages"
+ @echo " texinfo to make Texinfo files"
+ @echo " info to make Texinfo files and run them through makeinfo"
+ @echo " gettext to make PO message catalogs"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+ -rm -rf $(BUILDDIR)/*
+
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+ @echo
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+json:
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/django-modeltranslation.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/django-modeltranslation.qhc"
+
+devhelp:
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+ @echo
+ @echo "Build finished."
+ @echo "To view the help file:"
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/django-modeltranslation"
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/django-modeltranslation"
+ @echo "# devhelp"
+
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+ @echo
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
+ "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through pdflatex..."
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+ @echo
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+ @echo
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+texinfo:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo
+ @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
+ @echo "Run \`make' in that directory to run these through makeinfo" \
+ "(use \`make info' here to do that automatically)."
+
+info:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo "Running Texinfo files through makeinfo..."
+ make -C $(BUILDDIR)/texinfo info
+ @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
+
+gettext:
+ $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+ @echo
+ @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
+
+changes:
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+ @echo
+ @echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
... 5888 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-modeltranslation.git
More information about the Python-modules-commits
mailing list