Added check for closed periods.
Also,
Added a class "IndDataCleanMixin"
that helps with validation for indicator datum.
Methods in this class expects input for field and returns validation errors if appropriate.
Reason for making this a class of its own: So that both IndicatorDatumForm and Upload can use the same class to centralize validation logic.
Also reformatted some of the upload code to make it more readable
Added check for closed periods. Also, Added a class "IndDataCleanMixin" that helps with validation for indicator datum. Methods in this class expects input for field and returns validation errors if appropriate.
Reason for making this a class of its own: So that both IndicatorDatumForm and Upload can use the same class to centralize validation logic.
Also reformatted some of the upload code to make it more readable