Skip to content
Snippets Groups Projects
Commit 7d81562d authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Remove useless Approval model

parent 2554f781
No related branches found
Tags gracedb-2.4.0
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-19 21:45
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('events', '0036_populate_voevent_fields'),
]
operations = [
migrations.RemoveField(
model_name='approval',
name='approvedEvent',
),
migrations.RemoveField(
model_name='approval',
name='approver',
),
migrations.DeleteModel(
name='Approval',
),
]
......@@ -263,12 +263,6 @@ class Event(models.Model):
else:
return 'Production'
def ligoApproved(self):
return self.approval_set.filter(approvingCollaboration='L').count()
def virgoApproved(self):
return self.approval_set.filter(approvingCollaboration='V').count()
def reportingLatency(self):
if self.gpstime:
dt = self.created
......@@ -616,17 +610,7 @@ class Labelling(m2mThroughBase):
label=self.label.name)
# XXX Deprecated? Is this used *anywhere*?
# Appears to only be used in models.py. Here and Event class as approval_set
class Approval(models.Model):
COLLABORATION_CHOICES = ( ('L','LIGO'), ('V','Virgo'), )
approver = models.ForeignKey(UserModel)
created = models.DateTimeField(auto_now_add=True)
approvedEvent = models.ForeignKey(Event, null=False)
approvingCollaboration = models.CharField(max_length=1, choices=COLLABORATION_CHOICES)
## Analysis Specific Attributes.
class GrbEvent(Event):
ivorn = models.CharField(max_length=200, null=True)
author_ivorn = models.CharField(max_length=200, null=True)
......
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