Skip to content

Commit

Permalink
add sector (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsomborfoldi authored Dec 6, 2024
1 parent cd7583f commit 8baadfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ebl/fragmentarium/application/archaeology_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def create_excavation_plan(self, data, **kwargs) -> ExcavationPlan:
class FindspotSchema(Schema):
id_ = fields.Integer(required=True, data_key="_id")
site = site_field
sector = fields.String()
area = fields.String()
building = fields.String()
building_type = NameEnumField(
Expand Down
1 change: 1 addition & 0 deletions ebl/fragmentarium/domain/findspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ExcavationPlan:
class Findspot:
id_: int
site: Optional[ExcavationSite] = None
sector: str = ""
area: str = ""
building: str = ""
building_type: Optional[BuildingType] = None
Expand Down
1 change: 1 addition & 0 deletions ebl/tests/factories/archaeology.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Meta:
site = factory.fuzzy.FuzzyChoice(
set(ExcavationSite) - {ExcavationSite.STANDARD_TEXT}
)
sector = factory.Faker("word")
area = factory.Faker("word")
building = factory.Faker("word")
building_type = factory.fuzzy.FuzzyChoice(set(BuildingType))
Expand Down

0 comments on commit 8baadfb

Please sign in to comment.