Closed nabil-ha closed 2 years ago
Is this a duplicate of #206?
Is this a duplicate of #206?
No
But the issue seems to be the same, that you have the model defined as a list:
class ToFileInline(nested_admin.NestedStackedInline):
model = [FileToPart]
when it should be:
class ToFileInline(nested_admin.NestedStackedInline):
model = FileToPart
Thanks, weirdly the same error happened again but with different name. Sorry for taking your time.
Hey, To be clear about what I'm doing, I chose nested_admin because I need to make a Course object, inside it a Part object, ( Part one, two and so on ) and each Part obj will have a File object I get this error after opening an object of a model:
my admin.py:
my models.py: