From 4883ef1534f18852c7fb07196ac15f4811231fe3 Mon Sep 17 00:00:00 2001 From: Brian Moe <bmoe@gravity.phys.uwm.edu> Date: Thu, 2 Jul 2009 15:11:41 -0500 Subject: [PATCH] Added approvals --- gracedb/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gracedb/models.py b/gracedb/models.py index 6eeec61e6..1d7c37ebe 100755 --- a/gracedb/models.py +++ b/gracedb/models.py @@ -71,6 +71,10 @@ 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"), @@ -88,6 +92,8 @@ 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 -- GitLab