Skip to content

Commit

Permalink
changes choices to fix upsert (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
george-silva authored Aug 30, 2024
1 parent 41880da commit 8a429e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/planscape/impacts/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from impacts.models import (
TreatmentPlan,
TreatmentPrescription,
TreatmentPrescriptionAction,
TreatmentPrescriptionType,
)
from planning.models import ProjectArea, Scenario
Expand Down Expand Up @@ -115,7 +116,7 @@ class UpsertTreamentPrescriptionSerializer(serializers.Serializer):
queryset=ProjectArea.objects.all(),
)

action = serializers.ChoiceField(choices=TreatmentPrescriptionType.choices)
action = serializers.ChoiceField(choices=TreatmentPrescriptionAction.choices)

stands = serializers.PrimaryKeyRelatedField(
queryset=Stand.objects.all(),
Expand Down

0 comments on commit 8a429e0

Please sign in to comment.