Improve imports

This commit is contained in:
Daniil Fajnberg 2022-07-01 20:06:55 +02:00
parent 8a8ea7ec09
commit 60c6b1c4bb
3 changed files with 19 additions and 1 deletions

View File

@ -1 +1,2 @@
from .base import LocalAsyncSession, ORMBase, engine from .geography import *
from .companies import *

View File

@ -17,6 +17,15 @@ from compub.utils import multi_max
from .base import AbstractBase, ORMBase from .base import AbstractBase, ORMBase
__all__ = [
'LegalForm',
'LegalFormSubcategory',
'Integer',
'Company',
'CompanyName',
]
class LegalForm(AbstractBase): class LegalForm(AbstractBase):
__tablename__ = 'legal_form' __tablename__ = 'legal_form'

View File

@ -8,6 +8,14 @@ from sqlalchemy_utils.types import CountryType, UUIDType
from .base import AbstractBase from .base import AbstractBase
__all__ = [
'StateProvince',
'City',
'Street',
'Address',
]
class StateProvince(AbstractBase): class StateProvince(AbstractBase):
__tablename__ = 'state_province' __tablename__ = 'state_province'