Commit 428e01cb authored by Bryan Hoyt's avatar Bryan Hoyt

Properly enclose 'model' in quotes when testing p.[attr]

parent 6c53c78b
...@@ -171,7 +171,7 @@ class InlineModelConverter(InlineModelConverterBase): ...@@ -171,7 +171,7 @@ class InlineModelConverter(InlineModelConverterBase):
attrs = dict() attrs = dict()
for attr in dir(p): for attr in dir(p):
if not attr.startswith('_') and attr != model: if not attr.startswith('_') and attr != 'model':
attrs[attr] = getattr(p, attr) attrs[attr] = getattr(p, attr)
info = InlineFormAdmin(model, **attrs) 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