-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
django 1.4.2 admin #28
Comments
this seems to fix it. convert initial value that comes as int to a list of flag names. |
dude, the formatting is not helping. |
django=1.4.2 |
Working! 👍 thanks |
This works great. Can we make a pull request for this? |
Here it is : #32 |
The usage of admin in README also has typo, It should be, list_filter = (
('flags', BitFieldListFilter),
) |
Hi, can a maintainer merge this request. I have a similar problem. Impossible to add en entry which has a bitfield. |
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:
When editing the widget works as expected.
The exception occurs only when adding a new object.
fix follows
The text was updated successfully, but these errors were encountered: