fix: rename db model modules, for better convention
This commit is contained in:
parent
4ec7923164
commit
982da89861
9 changed files with 12 additions and 12 deletions
|
|
@ -30,9 +30,9 @@ from wuttjamaican.db.model import *
|
|||
from .users import WuttaFarmUser
|
||||
|
||||
# wuttafarm proper models
|
||||
from .assets import AssetType, Asset, AssetParent
|
||||
from .land import LandType, LandAsset
|
||||
from .structures import StructureType, StructureAsset
|
||||
from .animals import AnimalType, AnimalAsset
|
||||
from .groups import GroupAsset
|
||||
from .asset import AssetType, Asset, AssetParent
|
||||
from .asset_land import LandType, LandAsset
|
||||
from .asset_structure import StructureType, StructureAsset
|
||||
from .asset_animal import AnimalType, AnimalAsset
|
||||
from .asset_group import GroupAsset
|
||||
from .logs import LogType, ActivityLog
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from sqlalchemy import orm
|
|||
|
||||
from wuttjamaican.db import model
|
||||
|
||||
from wuttafarm.db.model.assets import AssetMixin, add_asset_proxies
|
||||
from wuttafarm.db.model.asset import AssetMixin, add_asset_proxies
|
||||
|
||||
|
||||
class AnimalType(model.Base):
|
||||
|
|
@ -25,7 +25,7 @@ Model definition for Groups
|
|||
|
||||
from wuttjamaican.db import model
|
||||
|
||||
from wuttafarm.db.model.assets import AssetMixin, add_asset_proxies
|
||||
from wuttafarm.db.model.asset import AssetMixin, add_asset_proxies
|
||||
|
||||
|
||||
class GroupAsset(AssetMixin, model.Base):
|
||||
|
|
@ -28,7 +28,7 @@ from sqlalchemy import orm
|
|||
|
||||
from wuttjamaican.db import model
|
||||
|
||||
from wuttafarm.db.model.assets import AssetMixin, add_asset_proxies
|
||||
from wuttafarm.db.model.asset import AssetMixin, add_asset_proxies
|
||||
|
||||
|
||||
class LandType(model.Base):
|
||||
|
|
@ -28,7 +28,7 @@ from sqlalchemy import orm
|
|||
|
||||
from wuttjamaican.db import model
|
||||
|
||||
from wuttafarm.db.model.assets import AssetMixin, add_asset_proxies
|
||||
from wuttafarm.db.model.asset import AssetMixin, add_asset_proxies
|
||||
|
||||
|
||||
class StructureType(model.Base):
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
Master view for Asset Types
|
||||
"""
|
||||
|
||||
from wuttafarm.db.model.assets import AssetType
|
||||
from wuttafarm.db.model import AssetType
|
||||
from wuttafarm.web.views import WuttaFarmMasterView
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Master view for Groups
|
|||
"""
|
||||
|
||||
from wuttafarm.web.views.assets import AssetMasterView
|
||||
from wuttafarm.db.model.groups import GroupAsset
|
||||
from wuttafarm.db.model import GroupAsset
|
||||
|
||||
|
||||
class GroupView(AssetMasterView):
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ Master view for Land Types
|
|||
|
||||
from webhelpers2.html import HTML, tags
|
||||
|
||||
from wuttafarm.db.model.land import LandType, LandAsset
|
||||
from wuttafarm.db.model import LandType, LandAsset
|
||||
from wuttafarm.web.views.assets import AssetTypeMasterView, AssetMasterView
|
||||
from wuttafarm.web.forms.schema import LandTypeRef
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue