From d046062e8b0b4ca575dbce61c2288e7c8e8947ff Mon Sep 17 00:00:00 2001 From: shrouxm Date: Tue, 13 Feb 2024 13:09:09 -0800 Subject: [PATCH] chore: appease linter --- .../models/depth_dependent_soil_data.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/terraso_backend/apps/soil_id/models/depth_dependent_soil_data.py b/terraso_backend/apps/soil_id/models/depth_dependent_soil_data.py index 7a9bf92ae..51a0ec72b 100644 --- a/terraso_backend/apps/soil_id/models/depth_dependent_soil_data.py +++ b/terraso_backend/apps/soil_id/models/depth_dependent_soil_data.py @@ -107,16 +107,20 @@ class ColorChroma(models.TextChoices): color_chroma = models.CharField(blank=True, null=True, choices=ColorChroma.choices) class ColorPhotoSoilCondition(models.TextChoices): - MOIST = "MOIST" - DRY = "DRY" + MOIST = "MOIST" + DRY = "DRY" + + color_photo_soil_condition = models.CharField( + blank=True, null=True, choices=ColorPhotoSoilCondition + ) - color_photo_soil_condition = models.CharField(blank=True, null=True, choices = ColorPhotoSoilCondition) - class ColorPhotoLightingCondition(models.TextChoices): - EVEN = "EVEN" - UNEVEN = "UNEVEN" + EVEN = "EVEN" + UNEVEN = "UNEVEN" - color_photo_lighting_condition = models.CharField(blank=True, null=True, choices = ColorPhotoLightingCondition) + color_photo_lighting_condition = models.CharField( + blank=True, null=True, choices=ColorPhotoLightingCondition + ) conductivity = models.DecimalField( blank=True, null=True, max_digits=100, decimal_places=2, validators=[MinValueValidator(0)]