Commit graph

6 commits

Author SHA1 Message Date
Matthias Kestenholz
b6cc6888af Remove the unsupported use-mirrors pip option
Remove the duplicated make_option import

Pin flake8's version to <3 as long as we are still supporting Python 2.6

Stop complaining (F999) about the assert

Fix travis.py for now

This will fail again as soon as Django 2.0 is released.
2016-09-14 12:35:58 +02:00
Dirk Eschler
08a9683ae1 Switched to flake8 in favour of pep8 and pyflakes which allows to ignore certain statements. 2012-11-01 20:05:17 +01:00
Dirk Eschler
6d60647741 Added workaround for pyflakes issue #13. 2012-10-24 21:28:37 +02:00
Dirk Eschler
d3e86f160b Made changes to support at least Django 1.3. 2012-10-24 20:56:01 +02:00
Dirk Eschler
3acfa09dbc - Validated codebase against pep8 and pyflakes.
- Fixed an undefined name bug in add_localized_fields error message when a model already has a field by the name that is added.
- Fixed redefined method name in ModeltranslationWithFileFields test class.
2012-10-24 11:06:35 +02:00
Dirk Eschler
1c8e82890d 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). 2012-07-04 09:29:05 +00:00
Renamed from modeltranslation/testurls.py (Browse further)