I have the name of the class in string like this:
className = "MyClassName"
I have already imported the MyClassName
in my model.
is there a way to use this:
Object = MyClassName()
What I have thought of
making if else statment like this:
if className == "MyClassName":
Object = MyClassName()
elif className == "MyClass2":
Object = MyClass2()
I hope there is a better way