Commit graph

6 commits

Author SHA1 Message Date
Serg Tereshchenko
25b6011a1f style: Apply black 2021-09-18 10:55:39 +03:00
Jacek Tomaszewski
8320fc8a5a Add Django 1.9 support (ref #349). 2015-12-06 18:48:17 +01:00
Jacek Tomaszewski
71af06c7c9 Add configurable formfields (close #211, ref #163, #187).
This will hopefully at last resolve the problem with nullable CharFields.
2013-10-23 15:40:45 +02:00
Jacek Tomaszewski
81c9d55c1e Make ClearableWidgetWrapper compatible with Django 1.6 (_has_changed). 2013-10-11 21:51:10 +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
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