Commit graph

154 commits

Author SHA1 Message Date
Dirk Eschler
a64a92ea30 Merge pull request #112 from zlorf/minor-fixes
Minor fixes
2012-11-15 12:30:21 -08:00
Dirk Eschler
2e4265324d Added test for CommaSeparatedIntegerField and noted that it's implicitly supported as a subclass of CharField. 2012-11-15 21:29:02 +01:00
Jacek Tomaszewski
261818de8b Refactor SUPPORTED_FIELDS: delete IntegerField subclasses. 2012-11-15 20:53:24 +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
Bruno Tavares
940b8911b1 Clean up the namespace imports 2012-11-15 10:30:03 +00:00
Dirk Eschler
7dd3891821 Added support and basic tests for BooleanField and NullBooleanField. 2012-11-14 23:37:45 +01:00
Dirk Eschler
825cbe38da Refactored TranslationField. Removed method overrides which are obsoleted by the the field_factory. 2012-11-14 22:43:42 +01:00
Dirk Eschler
93db5f109b Reflected baseclass name of returned subclass in field factory. 2012-11-14 14:18:38 +01:00
Dirk Eschler
eb9f3d043e Merge pull request #104 from zlorf/master
Fallback languages
2012-11-14 03:17:14 -08:00
Jacek Tomaszewski
777867dcf7 Clarify resolution order. 2012-11-13 16:57:24 +01:00
Jacek Tomaszewski
dd92cf0115 Add more verbose test for fallback languages. 2012-11-13 16:45:44 +01:00
Jacek Tomaszewski
5b51a7b793 Add fallback language feature and base tests. 2012-11-13 16:28:42 +01:00
Jacek Tomaszewski
86cb1e0de2 Use namespaced settings values in utils. 2012-11-13 16:03:09 +01:00
Dirk Eschler
b2437741aa Used get_language from modeltranslation.utils. Otherwise the returned language isn't guaranteed to be in the LANGUAGES setting and the manager might rewrite the field name to something like foo_en_us. 2012-11-13 13:31:00 +01:00
Jacek Tomaszewski
df02c81207 Disable rule 3
Merge branch 'upstream/no-rule3' into 'master'
2012-11-12 19:32:50 +01:00
Dirk Eschler
516d004837 Removed save_model override from admin which applied rule3. 2012-11-12 15:34:13 +01:00
Dirk Eschler
9675b2eb84 Satisfied flake8. 2012-11-12 15:32:11 +01:00
Dirk Eschler
66b54f9561 Merge branch 'master' of https://github.com/zlorf/django-modeltranslation 2012-11-12 13:40:10 +01:00
Jacek Tomaszewski
71364966a5 Make model constructor rewrite fields in kwargs. 2012-11-12 12:54:10 +01:00
Jacek Tomaszewski
cff7382f74 Fix objects.create kwargs priority. 2012-11-12 12:25:02 +01:00
Dirk Eschler
a276156ad1 Merge branch 'master' of https://github.com/zlorf/django-modeltranslation 2012-11-11 19:13:31 +01:00
Dirk Eschler
c44f9cfee5 Prepared 0.4 release. Fixed a bug in get_version if version is final along the way. 2012-11-11 18:46:47 +01:00
Jacek Tomaszewski
0949e95441 Add MultilingualManager and its tests. 2012-11-11 16:28:29 +01:00
Jacek Tomaszewski
a043680a68 Add Integer fields support. 2012-11-11 15:52:12 +01:00
Jacek Tomaszewski
e170a2f733 Fix registration error.
Due to bad intendation the registration for list of models would fail.
2012-11-11 00:54:49 +01:00
Jacek Tomaszewski
acf59e3a55 Fix python 2.5 compatibility. 2012-11-10 22:28:58 +01:00
Jacek Tomaszewski
37b5c0f03f Fix errors pointed by Travis. 2012-11-10 22:09:07 +01:00
Jacek Tomaszewski
c7b8b77e86 Allow tests to be run together with other apps. 2012-11-10 19:31:46 +01:00
Jacek Tomaszewski
8d9d837b2f Move testrunner. 2012-11-10 11:39:07 +01:00
Dirk Eschler
2e3c000960 Handled non-empty test media root directory deletion. 2012-11-07 11:50:04 +01:00
Dirk Eschler
cb3cce70be Cleaned up test media directories which are created during FileFieldsTest run. 2012-11-07 11:10:59 +01:00
Dirk Eschler
5b6f5ae8ea Refactored test and model names. 2012-11-06 20:00:31 +01:00
Dirk Eschler
59e67c93ca Fixed support for Python 2.5 which doesn't define format on strings. 2012-11-02 13:07:09 +01:00
Dirk Eschler
6ad3e839aa Central definition of version in module's __init__.py. The version is reused by setup.py and sphinx. 2012-11-02 12:59:46 +01: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
80c12b7177 Silenced pyflakes for required but unused import statement. 2012-11-01 19:58:07 +01:00
Dirk Eschler
ef3a065c6e Restored workaround for issue #19. 2012-11-01 19:48:52 +01:00
Dirk Eschler
9772391adc Moved initialization code back to models.py due to race condition on certain setups. Resolves issue #91. 2012-11-01 18:18:21 +01:00
Dirk Eschler
2e93ff05b4 Removed verify_exists argument from URLField declaration as it is deprecated in upcoming Django 1.5. 2012-10-28 00:23:32 +02:00
Dirk Eschler
9fba4bcac9 Reverted to old force_jquery.js behaviour. 2012-10-27 15:30:37 +02:00
Dirk Eschler
58ae1b42a8 Revert "Revert "Moved registrations in tests to a separate translation.py.""
This reverts commit 4ae1fb2d55.
2012-10-27 15:16:49 +02:00
Dirk Eschler
9f8571e655 Revert "Removed force_jquery.js."
This reverts commit 422c7aed74.
2012-10-27 14:43:08 +02:00
Dirk Eschler
4ae1fb2d55 Revert "Moved registrations in tests to a separate translation.py."
This reverts commit c75709948c.
2012-10-27 14:42:46 +02:00
Dirk Eschler
422c7aed74 Removed force_jquery.js. 2012-10-26 16:02:22 +02:00
Jaap Roes
ae7477e439 issue 88
I think this is all that needs to change when you want to
depend on the version of jquery that's shipped with Django
2012-10-26 16:30:49 +03:00
Dirk Eschler
c75709948c Moved registrations in tests to a separate translation.py. 2012-10-26 14:53:04 +02:00
Dirk Eschler
98e5e593f2 Merged app cache reset handling from django-modeltranslation-wrapper into ModeltranslationTestBase and cleaned up debug code from last commit. 2012-10-26 14:00:52 +02:00
Dirk Eschler
508eb6e800 Debugging drop tables when running on travis-ci. 2012-10-26 13:21:30 +02:00
Dirk Eschler
96a719ad2a Made test call non-interactive. 2012-10-25 16:27:30 +02:00
Dirk Eschler
b361b87848 Trying yet another approach to make things work on travis-ci using management command to call test. 2012-10-25 12:07:40 +02:00