We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 360040a + f5927a8 commit a686800Copy full SHA for a686800
dref/serializers.py
@@ -440,13 +440,12 @@ def validate(self, data):
440
% (dref_operational_update.id, dref_operational_update.operational_update_number)
441
)
442
443
- if self.instance and dref and dref.field_report is None:
444
- raise serializers.ValidationError('Can\'t edit Operational Update for which dref field report is empty.')
+
445
return data
446
447
def validate_appeal_code(self, appeal_code):
448
- if appeal_code and self.instance:
449
- raise serializers.ValidationError('Can\'t edit Appeal Code')
+ if appeal_code != self.instance.appeal_code:
+ raise serializers.ValidationError('Can\'t edit MDR Code')
450
return appeal_code
451
452
def get_total_timeframe(self, start_date, end_date):
0 commit comments