please check type of field_data if this is dictionary this can not call
with dot.
I fixed it and over write in my code. my code is:
{{{
@register.filter
def cell_count(inline_admin_form):
"""Return the number of cells used in a tabular inline."""
count = 1 # Hidden cell with hidden 'id' field
for fieldset in inline_admin_form:
# Count all visible fields.
for line in fieldset:
for field in line:
field_data = field.field
if type(field_data) == dict:
is_hidden = field_data["is_hidden"]
else:
is_hidden = field_data.is_hidden
if not is_hidden:
count += 1
if inline_admin_form.formset.can_delete:
# Delete checkbox
count += 1
return count
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33669>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.