From f75d4f161eb8ecb6fc06dc57c99b412a1ec6971d Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Thu, 3 Dec 2020 16:03:43 +0100 Subject: [PATCH] TMSS-320: removed TaskBlueprintSummary and SchedulingUnitBlueprintSummary which made it into master somehow via some merge? Anyway, they were obsolete, they are still obsolete --- .../src/tmss/tmssapp/models/specification.py | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/SAS/TMSS/src/tmss/tmssapp/models/specification.py b/SAS/TMSS/src/tmss/tmssapp/models/specification.py index 1f5a6e3b5be..cb69319f7dd 100644 --- a/SAS/TMSS/src/tmss/tmssapp/models/specification.py +++ b/SAS/TMSS/src/tmss/tmssapp/models/specification.py @@ -384,35 +384,6 @@ class DefaultReservationTemplate(BasicCommon): name = CharField(max_length=128, unique=True) template = ForeignKey("ReservationTemplate", on_delete=PROTECT) - -# -# DatabaseView objects -# -class TaskBlueprintSummary(Model): - taskblueprint_id = IntegerField() - subtask_id = IntegerField() - substate = CharField(max_length=128) - subtask_type = CharField(max_length=128) - - class Meta: - managed = False - db_table = 'tmssapp_taskblueprintsummary' - - -class SchedulingUnitBlueprintSummary(Model): - # Using in an id and ForeignKey is not common for a view BUT the id is a 'dummy' to be able to use in Django - # https://resources.rescale.com/using-database-views-in-django-orm/ - # otherwise an exception will be thrown - id = IntegerField(primary_key=True) - sub_id = IntegerField() - taskblueprint_id = IntegerField() - task_type = CharField(max_length=128) - derived_task_status = CharField(max_length=128) - - class Meta: - managed = False - db_table = 'tmssapp_schedulingunitblueprintsummary' - # # Instance Objects # -- GitLab