Alexander Atanasov
Alexander Atanasov
Thanks for the feedback!. I'm not a python expert but > > > isl = 1 > > type (isl) == int > > > False > > > type...
``` diff --git a/bitfield/forms.py b/bitfield/forms.py index f9a8fe6..aa89bdf 100644 --- a/bitfield/forms.py +++ b/bitfield/forms.py @@ -25,6 +25,13 @@ class BitFieldCheckboxSelectMultiple(CheckboxSelectMultiple): class BitFormField(IntegerField): def __init__(self, choices=(), widget=BitFieldCheckboxSelectMultiple, *args, **kwargs): + if isinstance(kwargs['initial'],int): +...
django=1.4.2 in the model: genre_flags = BitField(verbose_name=u'Genre',flags=[ 'PressRelease', 'Satire', 'Blog', 'OpEd', 'Opinion', 'UserGenerated', ], default=('PressRelease',),help_text=genres_help) does the job for me.
Here it is : https://github.com/disqus/django-bitfield/pull/32
Hi, I have worked a lot on the NT format but it's not complete and not released yet. I doubt i'll ever get back to it - online navigation is...