fix: rename db model modules, for better convention

This commit is contained in:
Lance Edgar 2026-02-18 11:43:26 -06:00
parent 4ec7923164
commit 982da89861
9 changed files with 12 additions and 12 deletions

View file

@ -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

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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

View file

@ -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):

View file

@ -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