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

TMSS-315: simplified related_name, hence solved todo

parent ad6c5673
No related branches found
No related tags found
2 merge requests!260syncing cob-master with master again,!246Resolve TMSS-315
......@@ -288,7 +288,7 @@ class Dataproduct(BasicCommon):
size = BigIntegerField(null=True, help_text='Dataproduct size, in bytes. Used for accounting purposes. NULL if size is (yet) unknown (NULLable).')
feedback_doc = JSONField(help_text='Dataproduct properties, as reported by the producing process.')
feedback_template = ForeignKey('DataproductFeedbackTemplate', on_delete=PROTECT, help_text='Schema used for feedback_doc.')
sap = ForeignKey('SAP', on_delete=PROTECT, null=True, related_name="SAP_dataproducts", help_text='SAP this dataproduct was generated out of (NULLable).') # todo: I find it odd to have this uppercase
sap = ForeignKey('SAP', on_delete=PROTECT, null=True, related_name="dataproducts", help_text='SAP this dataproduct was generated out of (NULLable).')
def save(self, force_insert=False, force_update=False, using=None, update_fields=None):
annotate_validate_add_defaults_to_doc_using_template(self, 'specifications_doc', 'specifications_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