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 William Coughlin
GraceDB Server
Commits
a0d21e64
Commit
a0d21e64
authored
15 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Initial stab at tagging events
parent
e9ef2fbc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gracedb/models.py
+8
-0
8 additions, 0 deletions
gracedb/models.py
settings.py
+1
-0
1 addition, 0 deletions
settings.py
settings_dev.py
+1
-0
1 addition, 0 deletions
settings_dev.py
with
10 additions
and
0 deletions
gracedb/models.py
+
8
−
0
View file @
a0d21e64
...
...
@@ -4,6 +4,9 @@ import thread
import
string
import
os
from
tagging.fields
import
TagField
from
tagging.models
import
Tag
from
gracedb.ligolw.models
import
CoincEvent
class
User
(
models
.
Model
):
...
...
@@ -60,6 +63,11 @@ class Event(models.Model):
# old date encoded uids.
uid
=
models
.
CharField
(
max_length
=
20
,
unique
=
False
,
default
=
""
)
tags
=
TagField
()
def
get_tags
(
self
):
return
Tag
.
objects
.
get_for_object
(
self
)
class
Meta
:
ordering
=
[
"
-id
"
]
...
...
This diff is collapsed.
Click to expand it.
settings.py
+
1
−
0
View file @
a0d21e64
...
...
@@ -113,4 +113,5 @@ INSTALLED_APPS = (
'
django.contrib.sessions
'
,
'
django.contrib.sites
'
,
'
gracedb.gracedb
'
,
'
tagging
'
,
)
This diff is collapsed.
Click to expand it.
settings_dev.py
+
1
−
0
View file @
a0d21e64
...
...
@@ -105,4 +105,5 @@ INSTALLED_APPS = (
'
django.contrib.sessions
'
,
'
django.contrib.sites
'
,
'
gracedb.gracedb
'
,
'
tagging
'
,
)
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