Commit graph

707 commits

Author SHA1 Message Date
Rafleze
23ca52ceef Update admin.py
Improvements on _patch_prepopulated_fields
2013-07-08 21:22:58 +02:00
Dirk Eschler
cc5687e4d0 Merged test-unique-nullable-fields branch into master. 2013-06-18 11:09:14 +02:00
Dirk Eschler
a51e5d0c39 Merged pull request #186. 2013-05-27 12:18:41 +02:00
Dirk Eschler
fdc0756698 Updated changelog. 2013-05-27 10:48:11 +02:00
deschler
20d7e21809 Added basic ProxyModel test cases (ref #185). 2013-05-26 20:22:39 +02:00
deschler
7568229524 Disabled doctests which are automatically run by latest pyflakes version. Resolves a fail in admin.py docstrings which contain doctest-like comments. 2013-05-23 23:28:32 +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
wrwrwr
d95258cd02 Test updating existing translation with an empty value through a form that doesn't include the original, translated field. 2013-05-16 12:29:25 +02:00
wrwrwr
4cc0d2b25e Python 3 compatiblity: no unicode literals for 3.2 and safeguard against loop during copy operation. 2013-05-15 16:50:14 +02:00
wrwrwr
027349bd9a Set self to something in the replace_orig_field doctest, so PyFlakes doesn't complain. 2013-05-15 12:37:14 +02:00
wrwrwr
7cd60aa977 Added a small script unchecking the clear box after a wrapped input is edited.
Note: Starting global declaration, and the somewhat ugly jQuery call are for JSLint.
Also written a class comment for the widget wrapper and cleaned up some Flake8 errors.
2013-05-15 12:01:46 +02:00
wrwrwr
22faea9646 Reworked the solution by replacing clearable widgets with a widget wrapper. This makes it possible to wrap only widgets of nullable fields, and thus not add the clear checkbox when it's not needed.
The implementation is loosely based on RelatedFieldWidgetWrapper from contrib.admin, but uses a bit more Python magic; tested only with TextInput and Textarea widgets and their admin counterparts, but with a bit of luck should work with other widgets too.
2013-05-14 22:21:03 +02:00
wrwrwr
b9494f7607 Merge branch 'master' into feature/no-empty-string-fallback-for-nullable
Conflicts:
	modeltranslation/admin.py
	modeltranslation/fields.py
	modeltranslation/translator.py
2013-05-13 13:34:37 +02:00
Jacek Tomaszewski
1ba28241d3 Update changelog. 2013-04-12 16:05:58 +02:00
Dirk Eschler
412943ba83 Added basic test class for TranslationModelForm. 2013-04-08 12:24:31 +02:00
Dirk Eschler
d9967525a4 Added a new forms module with a TranslationModelForm which removes the translation fields (thanks to Dylan Verheul). 2013-04-08 12:23:10 +02:00
Jacek Tomaszewski
11e77b4c31 Remove Python 2.5 compatibility code. 2013-04-08 11:57:46 +02:00
Jacek Tomaszewski
3465486da4 Remove Django 1.3 compatibility code. 2013-04-08 11:55:31 +02:00
Jacek Tomaszewski
b5fbdd3a66 Indicate Python 3 support in docs and Pypi. 2013-04-08 11:52:44 +02:00
Jacek Tomaszewski
bd90b4fe49 Auto use newest django micro release in Travis. 2013-04-08 11:41:06 +02:00
deschler
601e9e1fcb Refactor Travis config file. 2013-04-08 11:41:06 +02:00
Jacek Tomaszewski
d107b999b0 Update tox.ini. 2013-04-08 11:41:06 +02:00
Jacek Tomaszewski
e04073a7ec Preserve default fields order in group_fieldsets. 2013-04-08 11:41:06 +02:00
Jacek Tomaszewski
b7ea1fac4c Further work towards Python 3 support. 2013-04-08 11:41:06 +02:00
Kudlaty
69f6bfc75f Use six.with_metaclass instead of some hack. 2013-04-08 11:41:06 +02:00
deschler
e4d772940e Fixed flake8 complaints. 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
3bdbe4eb2c Fix _mt_init attribute deletion (close #176). 2013-04-08 11:37:27 +02:00
deschler
7c8870c7ac Fixed typo and made a small reword. 2013-04-05 11:38:09 +02:00
deschler
19785d0649 Fixed wrong use of inline literal. 2013-04-05 02:52:43 +02:00
deschler
a22cf693f4 Added docs for tabbed translation fields admin classes. 2013-04-05 02:48:08 +02:00
deschler
2d63001edd Added convenience admin classes for easier inclusion of tabbed translation fields static files (closes #171). 2013-04-05 02:14:59 +02:00
Jacek Tomaszewski
a203a65a3c Use proper assert* methods in test.
This remove PendingDeprecationWarnings.
2013-04-04 14:15:24 +02:00
wrwrwr
59199bb282 Made the widget template for nullable fields unicode, so the widget renders with non-ascii characters in input value. 2013-04-03 18:14:55 +02:00
Jacek Tomaszewski
835bc1f643 Update docs example. 2013-04-03 10:12:26 +02:00
Jacek Tomaszewski
9c71333d16 Fix broken docs link. 2013-04-03 09:59:28 +02:00
Jacek Tomaszewski
45943d8ee1 Remove dead code from tests. 2013-04-02 23:30:40 +02:00
Jacek Tomaszewski
eeb800aa1e Optimize testrunner.
Since LANGUAGES setting is overridden in tests, there is no need
to use them all in pre-test database creation (because database
would be rebuild anyway and only time is wasted).
2013-04-02 23:27:43 +02:00
Jacek Tomaszewski
fef3109e60 Fix test running in Django 1.6: foreignkey support (close #169). 2013-04-02 23:27:21 +02:00
Jacek Tomaszewski
264b917081 Fix test running in Django 1.6: model opts function caching. 2013-04-02 22:36:37 +02:00
Jacek Tomaszewski
54a2ad043f Fix test running in Django 1.6: boolean field default. 2013-04-02 11:46:05 +02:00
Jacek Tomaszewski
6c07b18152 Fix Django 1.5 metaclass retrieval (ref #166). 2013-04-02 11:42:57 +02:00
Jacek Tomaszewski
a6257244ec Update docs about loaddata command new keyword. 2013-04-02 10:32:41 +02:00
Jacek Tomaszewski
32e945e28b Handle non-translation form submision for translated models (close #167). 2013-04-02 09:51:44 +02:00
Jacek Tomaszewski
07f7164289 Handle only/defer manager methods (close #166). 2013-04-02 09:51:44 +02:00
Jacek Tomaszewski
ce167e3256 Fix test for #154. 2013-04-02 09:51:44 +02:00
deschler
8058df0142 Updated MODELTRANSLATION_DEBUG default value. 2013-03-30 23:04:57 +01:00
deschler
8e9472066a Updated Changelog. 2013-03-30 22:59:23 +01:00
deschler
17e6767a2c Added Braden MacDonald to list of authors. 2013-03-30 22:48:48 +01:00