Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Coughlin
GraceDB Server
Commits
47247c0d
Commit
47247c0d
authored
10 years ago
by
Branson Craig Stephens
Browse files
Options
Downloads
Patches
Plain Diff
Changed EMFacility model to EMGroup, a representation of the EM followup MOU group.
parent
8cb71b5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/models.py
+11
-6
11 additions, 6 deletions
gracedb/models.py
with
11 additions
and
6 deletions
gracedb/models.py
+
11
−
6
View file @
47247c0d
...
...
@@ -269,13 +269,15 @@ class EventLog(models.Model):
# in the views that use it and give an informative error message.
raise
Exception
(
"
Too many attempts to save log message. Something is wrong.
"
)
class
EMFacility
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
200
,
unique
=
True
)
shortName
=
models
.
CharField
(
max_length
=
20
,
unique
=
True
)
class
EMGroup
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
20
,
unique
=
True
)
# XXX what else? Possibly the liason. These can be populated
# XXX what else? Possibly the liason
s
. These can be populated
# automatically from the gw-astronomy COManage-provisioned LDAP.
liason
=
models
.
ForeignKey
(
DjangoUser
)
# Let's leave this out for now. The submitter will be stored in
# the EMBB log record, and that should be enough for audit/blame
# purposes.
#liasons = models.ManyToManyField(DjangoUser)
# XXX Characteristics needed to produce pointings?
...
...
@@ -358,8 +360,11 @@ class EMBBEventLog(models.Model):
# The responsible author of this communication
submitter
=
models
.
ForeignKey
(
DjangoUser
)
# from a table of people
# The MOU group responsible
group
=
models
.
ForeignKey
(
EMGroup
)
# from a table of facilities
# The instrument used or intended for the imaging implied by this footprint
facility
=
models
.
ForeignKey
(
EMFacility
)
# from a table of facilities
instrument
=
models
.
CharField
(
max_length
=
200
,
blank
=
True
)
# Facility-local identifier for this footprint
footprintID
=
models
.
CharField
(
max_length
=
200
,
blank
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment