Commit graph

39 commits

Author SHA1 Message Date
Dirk Eschler
85e26e3842 Removed superfluous can_import_settings check. The option has been removed in Django 1.11. 2017-02-22 14:17:27 +01:00
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
Primož Kerin
5c93fd6b7f Make sync_translation_fields command Django 1.10 compatible 2016-09-14 12:35:58 +02:00
Jacek Tomaszewski
8320fc8a5a Add Django 1.9 support (ref #349). 2015-12-06 18:48:17 +01:00
Dirk Eschler
15c7d9d6f6 Omitted transaction.commit_unless_managed() call for newer Django versions. This is handled by the transaction system in Django 1.6 and above (close #310). 2015-05-06 14:18:32 +02:00
Dirk Eschler
1f7ce84bf2 Fixed deprecated meta api usage for Django 1.8, module_name was renamed to model_name (ref #310). 2015-05-06 12:35:57 +02:00
Jacek Tomaszewski
d8e6f32cbd Django 1.8 compatibility changes (ref #299).
Thanks to Luca Corti for initial commit.
2015-04-13 00:43:09 +02:00
Jacek Tomaszewski
c89aac29fa Remove unused import. 2014-06-09 00:00:50 +02:00
Jacek Tomaszewski
0dd826547b Fixed sync_translation_fields to be compatible with Postgresql (close #247). 2014-06-05 22:53:35 +02:00
Dirk Eschler
813b5b2e0c Merge pull request #225 from leplatrem/db_column_with_sync
Take db_column into account while syncing fields
2014-04-16 01:02:09 +02:00
Jacek Tomaszewski
b313793490 Use _default_manager instead of objects; patch _default_manager as well. 2014-03-13 19:58:03 +01:00
Mathieu Leplatre
bb29a72b45 Use AVAILABLE_LANGUAGES do detect missing fields 2014-02-05 17:44:16 +01:00
Mathieu Leplatre
a2c6f75efe Take db_column into account while syncing fields 2014-02-04 16:57:45 +01:00
Jacek Tomaszewski
76da9bf92e Some python3 compatibility fixes (close #220). 2013-12-29 11:00:53 +01:00
Jacek Tomaszewski
e78ef34808 Make loaddata command retain locale (close #151). 2013-10-12 15:14:10 +02:00
deschler
a26bdd8041 Fixed flake8 errors. 2013-05-23 23:11:54 +02:00
cuchac
dfc49971dc Fix #179: --noinput option for the sync_translation_fields command 2013-05-23 13:43:31 +02:00
Jacek Tomaszewski
b7ea1fac4c Further work towards Python 3 support. 2013-04-08 11:41:06 +02:00
Kudlaty
966c0f38ad Initial work towards python 3 support 2013-04-08 11:41:06 +02:00
Jacek Tomaszewski
134427dfa4 Add auto-population option to loaddata command (close #160). 2013-03-05 21:43:27 +01:00
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
Dirk Eschler
e94bbcd3d2 Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01: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
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
Jacek Tomaszewski
e48a35d35e Fix update_translation_fields command. 2012-12-31 13:12:34 +01:00
Mihai Sucan
2ffe539727 Update modeltranslation/management/commands/sync_translation_fields.py
Fix exception:

TypeError: db_type() got multiple values for keyword argument 'connection'

Explanation: http://stackoverflow.com/questions/7068057/explicit-argument-in-signature-does-not-work-very-odd
2012-11-15 14:47:19 +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
e2bc3f2d4d 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). 2012-07-11 12:57:37 +00:00
Dirk Eschler
6f7704bc57 Some cleanups and validated codebase against PEP8 and coding guidelines. 2012-07-04 10:09:22 +00:00
Dirk Eschler
80d97888b0 Improved performance of update_translation_fields command. Resolves issue 43 (thanks to adamsc). 2010-09-06 08:58:52 +00:00
Dirk Eschler
974503ca0a Moved determination of default language into settings. 2010-07-06 09:52:41 +00:00
Dirk Eschler
b8fab905dc Fixed TranslationField pre_save does not get the default language correctly. Factored out determination of default language. Resolves issue 31 (thanks to jaap). 2010-06-17 14:33:39 +00:00
Dirk Eschler
3f4a6eb472 Validated codebase against pep8. 2010-04-19 10:52:57 +00:00
Dirk Eschler
6220314bc1 Code cleanups. 2010-03-02 22:17:39 +00:00
Peter Eschler
e4a882abc8 Mostly cleanup. 2009-02-21 02:18:06 +00:00
Peter Eschler
93ca595086 Fixed the management command for updating translation fields. 2009-02-18 00:05:33 +00:00
Peter Eschler
9ae88a38d9 Added missing management command files. 2009-02-17 21:10:02 +00:00
Peter Eschler
73ee7db101 Initial source and metadata import. 2009-02-17 21:08:19 +00:00