Commit c8132741 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #503 from bryhoyt/model-string-fix

Properly enclose 'model' in quotes when testing p.[attr]
parents 57fc7649 428e01cb
......@@ -171,7 +171,7 @@ class InlineModelConverter(InlineModelConverterBase):
attrs = dict()
for attr in dir(p):
if not attr.startswith('_') and attr != model:
if not attr.startswith('_') and attr != 'model':
attrs[attr] = getattr(p, attr)
info = InlineFormAdmin(model, **attrs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment