-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Description
Exception Type: TypeError at /admin/article/sarticle/add/
Exception Value: 'int' object is not iterable
local vars:
name
'genre_flags'
self
<bitfield.forms.BitFieldCheckboxSelectMultiple object at 0xb40832ac>
attrs
{'id': u'id_genre_flags'}
value
0
choices
()
model:
genre_flags = BitField(flags=[
'PressRelease',
'Satire',
'Blog',
'OpEd',
'Opinion',
'UserGenerated',
], default=('PressRelease',), help_text=genres_help)
admin.py:
formfield_overrides = {
BitField: {'widget': BitFieldCheckboxSelectMultiple},
}
When editing the widget works as expected.
The exception occurs only when adding a new object.
fix follows
Metadata
Metadata
Assignees
Labels
No labels