Skip to content

Commit

Permalink
fix: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Schreiber <[email protected]>
  • Loading branch information
David Code Howard and paulschreiber committed Jan 25, 2024
1 parent 59afb5d commit 36397e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def methods(self):
if field.name.endswith("_enabled")
]
return {
field_name + "_enabled": getattr(self, field_name + "_required")
f"{field_name}_enabled": getattr(self, f"{field_name}_required")
for field_name in field_names
}

Expand Down
2 changes: 1 addition & 1 deletion terraso_backend/apps/soil_id/models/soil_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class SoilDataDepthIntervalPreset(models.TextChoices):
def remove_from_project(self):
SoilDataDepthInterval.objects.filter(soil_data=self).delete()
# Default is to set the site interval to custom for now
# At some point, user will be able to set a default preset
# TODO: At some point, user will be able to set a default preset
self.depth_interval_preset = self.SoilDataDepthIntervalPreset.CUSTOM
self.save()

Expand Down

0 comments on commit 36397e6

Please sign in to comment.