views:

62

answers:

1

I have a class in my existing python project, User, that I would like to map to tables. But I'm not sure what the best way to do this is?

Does this mean I can remove:

class User:
    pass

from my model/__ init __.py?

Or should I leave that in there, and have something like:

from project.model.user import User
class User:
    pass

In essence, having (2) different classes with the same name?

Thanks.