diff --git a/terraso_backend/apps/soil_id/models/soil_data.py b/terraso_backend/apps/soil_id/models/soil_data.py index cce4e5753..97946396e 100644 --- a/terraso_backend/apps/soil_id/models/soil_data.py +++ b/terraso_backend/apps/soil_id/models/soil_data.py @@ -135,7 +135,8 @@ class LimeRequirements(models.TextChoices): HIGH = "HIGH", "High amounts of lime required" VERY_DIFFICULT = "VERY_DIFFICULT", "Very difficult to modify with lime" - lime_requirements_select = models.CharField(blank=True, null=True, choices=LimeRequirements.choices) + lime_requirements_select = models.CharField( + blank=True, null=True, choices=LimeRequirements.choices) class SurfaceStoniness(models.TextChoices): LESS_THAN_01 = "LESS_THAN_01", "< 0.1%" @@ -144,8 +145,9 @@ class SurfaceStoniness(models.TextChoices): BETWEEN_15_AND_50 = "BETWEEN_15_AND_50", "15 to 50%" BETWEEN_50_AND_90 = "BETWEEN_50_AND_90", "50 - 90%" GREATER_THAN_90 = "GREATER_THAN_90", "> 90%" - - surface_stoniness_select = models.CharField(blank=True, null=True, choices=SurfaceStoniness.choices) + + surface_stoniness_select = models.CharField( + blank=True, null=True, choices=SurfaceStoniness.choices) class WaterTableDepth(models.TextChoices): NOT_FOUND = "NOT_FOUND", "Not found" @@ -155,14 +157,17 @@ class WaterTableDepth(models.TextChoices): BETWEEN_75_AND_120_CM = "BETWEEN_75_AND_120_CM", "75 to 120 cm" GREATER_THAN_120_CM = "GREATER_THAN_120_CM", "> 120 cm" - water_table_depth_select = models.CharField(blank=True, null=True, choices=WaterTableDepth.choices) + water_table_depth_select = models.CharField( + blank=True, null=True, choices=WaterTableDepth.choices) class SoilDepth(models.TextChoices): NOT_FOUND = "NOT_FOUND", "Not found" TWENTY_CM_OR_LESS = "TWENTY_CM_OR_LESS", "20 cm or less" - GREATER_THAN_20_LESS_THAN_50_CM = "GREATER_THAN_20_LESS_THAN_50_CM", "Greater than 20 and less than 50 cm" + GREATER_THAN_20_LESS_THAN_50_CM = ( + "GREATER_THAN_20_LESS_THAN_50_CM", "Greater than 20 and less than 50 cm") BETWEEN_50_AND_70_CM = "BETWEEN_50_AND_70_CM", "Between 50 and 70 cm" - GREATER_THAN_70_LESS_THAN_100_CM = "GREATER_THAN_70_LESS_THAN_100_CM", "Greater than 70 and less than 100 cm" + GREATER_THAN_70_LESS_THAN_100_CM = ( + "GREATER_THAN_70_LESS_THAN_100_CM", "Greater than 70 and less than 100 cm") HUNDRED_CM_OR_GREATER = "HUNDRED_CM_OR_GREATER", "100 cm or greater" soil_depth_select = models.CharField(blank=True, null=True, choices=SoilDepth.choices) @@ -190,9 +195,10 @@ class Grazing(models.TextChoices): CAMEL = "CAMEL", "Camel" WILDLIFE_FOREST = "WILDLIFE_FOREST", "Wildlife (forest, deer)" WILDLIFE_GRASSLANDS = "WILDLIFE_GRASSLANDS", "Wildlife (grasslands, giraffes, ibex)" - + grazing = models.CharField(blank=True, null=True, choices=Grazing.choices) + class SoilDataDepthInterval(BaseModel, BaseDepthInterval): soil_data = models.ForeignKey( SoilData, on_delete=models.CASCADE, related_name="depth_intervals"