@@ -649,10 +649,10 @@ def create(self, validated_data):
649649
650650 def update (self , instance , validated_data ):
651651 validated_data ["updated_by" ] = self .context ["request" ].user
652- changing_timeframe_operation = validated_data .get (
653- "changing_timeframe_operation" , instance .changing_timeframe_operation
654- )
655- total_operation_timeframe = validated_data .get ("total_operation_timeframe" , instance .total_operation_timeframe )
652+ # changing_timeframe_operation = validated_data.get(
653+ # "changing_timeframe_operation", instance.changing_timeframe_operation
654+ # )
655+ # total_operation_timeframe = validated_data.get("total_operation_timeframe", instance.total_operation_timeframe)
656656 number_of_people_targeted = validated_data .get ("number_of_people_targeted" , instance .number_of_people_targeted )
657657 request_for_second_allocation = validated_data .get (
658658 "request_for_second_allocation" , instance .request_for_second_allocation
@@ -673,25 +673,25 @@ def update(self, instance, validated_data):
673673 if modified_at is None :
674674 raise serializers .ValidationError ({"modified_at" : "Modified At is required!" })
675675
676- if (
677- (not changing_timeframe_operation )
678- and total_operation_timeframe
679- and dref_operation_timeframe
680- and total_operation_timeframe != dref_operation_timeframe
681- ):
682- raise serializers .ValidationError (
683- "Found diffrent operation timeframe for dref and operational update with changing not set to true"
684- )
685-
686- if (
687- changing_timeframe_operation
688- and total_operation_timeframe
689- and dref_operation_timeframe
690- and total_operation_timeframe == dref_operation_timeframe
691- ):
692- raise serializers .ValidationError (
693- "Found same operation timeframe for dref and operational update with changing set to true"
694- )
676+ # if (
677+ # (not changing_timeframe_operation)
678+ # and total_operation_timeframe
679+ # and dref_operation_timeframe
680+ # and total_operation_timeframe != dref_operation_timeframe
681+ # ):
682+ # raise serializers.ValidationError(
683+ # "Found diffrent operation timeframe for dref and operational update with changing not set to true"
684+ # )
685+
686+ # if (
687+ # changing_timeframe_operation
688+ # and total_operation_timeframe
689+ # and dref_operation_timeframe
690+ # and total_operation_timeframe == dref_operation_timeframe
691+ # ):
692+ # raise serializers.ValidationError(
693+ # "Found same operation timeframe for dref and operational update with changing set to true"
694+ # )
695695
696696 if (
697697 (not changing_target_population_of_operation )
0 commit comments