Sergey Tereschenko
065e23e89c
cleanup: remove code for old django versions
2019-02-12 23:43:52 +02: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
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
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
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
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
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