Skip to content
Snippets Groups Projects
Commit 8b910f88 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-405: allow blank description. fixed indentation typo

parent 87677485
No related branches found
No related tags found
1 merge request!240Resolve TMSS-405
......@@ -41,7 +41,7 @@ class BasicCommon(Model):
class NamedCommon(BasicCommon):
name = CharField(max_length=128, help_text='Human-readable name of this object.', null=False) # todo: check if we want to have this primary_key=True
description = CharField(max_length=255, help_text='A longer description of this object.')
description = CharField(max_length=255, help_text='A longer description of this object.', blank=True)
def __str__(self):
return self.name
......@@ -553,7 +553,7 @@ class SchedulingUnitDraft(NamedCommon):
validate_json_against_schema(self.observation_strategy_template.template, self.requirements_template.schema)
if self.scheduling_constraints_doc is not None and self.scheduling_constraints_template_id and self.scheduling_constraints_template.schema is not None:
validate_json_against_schema(self.scheduling_constraints_doc, self.scheduling_constraints_template.schema)
validate_json_against_schema(self.scheduling_constraints_doc, self.scheduling_constraints_template.schema)
annotate_validate_add_defaults_to_doc_using_template(self, 'requirements_doc', 'requirements_template')
annotate_validate_add_defaults_to_doc_using_template(self, 'scheduling_constraints_doc', 'scheduling_constraints_template')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment