I have two packages which are colliding. I'm doing:
from foo import Objects as JuryObjects
from bar import Objects as OptimusObjects
Now, both "JuryObjects" and "OptimusObjects" have a class "Language" (they each have their own database). I get this error:
ValueError: class Language is already in the registry (other class is <class 'foo.Objects.Language'>, from the module foo.Objects
in ~foo/Objects.pyc; attempted new class is <class 'bar.Objects.Language'>, from the module bar.Objects in ~bar/Objects.pyc)
Is there any way to have the same name for this class?
Also, if I change one of the Language classes, will it work for me to import from two different databases?