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. Added a new admin option exclude_languages to exclude certain translation fields per admin class. 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).

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@132 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Some cleanups and validated codebase against PEP8 and coding guidelines.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@133 eb01185e-fd33-11dd-bc25-5f29055a2a2d
More work on the admin integration refactoring. The exclude_languages isn't really thread safe, removed it for now. Handled custom model form fields and exclude options.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@135 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Updated changelog.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@136 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Moved patch_prepopulated_fields to TranslationBaseModelAdmin as prepopulated_fields option is also available for inlines. Minor code cleanups.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@137 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Some cleanups.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@138 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Added test for admin inline fieldset.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@139 eb01185e-fd33-11dd-bc25-5f29055a2a2d
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. This is basically a merge from django-modeltranslation-wrapper with a few changes regarding how registration is triggered. See documentation for details. Resolves issues 58 and 71 (thanks to Jacek Tomaszewski, the author of modeltranslation-wrapper).

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@140 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Removed stale models.py import.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@141 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Added a warning for svn updates.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@142 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Restored debug output which formerly lived in models.py and added it to autoregister.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@144 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Added an empty models.py as Django requires this for tests.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@145 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Moved autoregistration code to init and merged related changes from hyperweek's branch at github . This eliminates the need for hooking into urls.py.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@146 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Included pid in registration debug output and added a new setting MODELTRANSLATION_DEBUG to disable debug output independently from the global DEBUG setting.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@147 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Fixed dynamic TranslationOptions model name.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@148 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Added a new management command sync_database_fields to sync the database after a new model has been registered or a new language has been added. Resolves issue 62 (thanks to Sébastien Fievet and the authors of django-transmeta).

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@149 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Fixed non-unicode verbose field names (with actual unicode characters) showing up empty in forms. Resolves issue 35.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@150 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Added workaround for issue 33: Using a non default language admin leads to confusing original field values. Done by forcing the default language in save_model.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@152 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Updated unittest of rule 3 to do a language switch. This should demonstrate a wrong behaviour of save when the current language is different than the default language. In this case the original field is set to value of the current language's field. See issue 33 for details.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@153 eb01185e-fd33-11dd-bc25-5f29055a2a2d
Added missing DEFAULT_LANGUAGE setting.

git-svn-id: http://django-modeltranslation.googlecode.com/svn/trunk@154 eb01185e-fd33-11dd-bc25-5f29055a2a2d