Skip to content
Snippets Groups Projects
Commit 1d85fd12 authored by Brian Moe's avatar Brian Moe
Browse files

Added Approval model.

parent 4883ef15
No related branches found
No related tags found
No related merge requests found
......@@ -71,10 +71,6 @@ class Group(models.Model):
return self.name
class Approval(models.Model):
approver = models.ForeignKey(User)
created = models.DateTimeField(auto_now_add=True)
class Event(models.Model):
ANALYSIS_TYPE_CHOICES = (
("LM", "LowMass"),
......@@ -92,9 +88,6 @@ class Event(models.Model):
created = models.DateTimeField(auto_now_add=True)
group = models.ForeignKey(Group)
analysisType = models.CharField(max_length=20, choices=ANALYSIS_TYPE_CHOICES)
# ligoApproved = models.ForeignKey(Approval, null=True)
# virgoApproved = models.ForeignKey(Approval, null=True)
def weburl(self):
return "https://ldas-jobs.phys.uwm.edu/gracedb/data/%s" % self.uid
......@@ -104,3 +97,10 @@ class Event(models.Model):
def clusterurl(self):
return "pcdev1.phys.uwm.edu:/archive/gracedb/data/%s" % self.uid
class Approval(models.Model):
COLLABORATION_CHOICES = ( ('L','LIGO'), ('V','Virgo'), )
approver = models.ForeignKey(User)
created = models.DateTimeField(auto_now_add=True)
approvedEvent = models.ForeignKey(Event, null=False)
approvingCollaboration = models.CharField(max_length=1, choices=COLLABORATION_CHOICES)
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