SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
SciPost
SciPost
Commits
1f2fc882
Commit
1f2fc882
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Add ProductionEvent to admin
parent
02e9d899
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
production/admin.py
+2
-1
2 additions, 1 deletion
production/admin.py
with
2 additions
and
1 deletion
production/admin.py
+
2
−
1
View file @
1f2fc882
...
@@ -2,7 +2,7 @@ from django.contrib import admin
...
@@ -2,7 +2,7 @@ from django.contrib import admin
from
guardian.admin
import
GuardedModelAdmin
from
guardian.admin
import
GuardedModelAdmin
from
.models
import
ProductionStream
,
ProductionEvent
,
ProductionUser
from
.models
import
ProductionStream
,
ProductionEvent
,
ProductionUser
,
ProductionEvent
def
event_count
(
obj
):
def
event_count
(
obj
):
...
@@ -31,4 +31,5 @@ class ProductionStreamAdmin(GuardedModelAdmin):
...
@@ -31,4 +31,5 @@ class ProductionStreamAdmin(GuardedModelAdmin):
admin
.
site
.
register
(
ProductionUser
)
admin
.
site
.
register
(
ProductionUser
)
admin
.
site
.
register
(
ProductionEvent
)
admin
.
site
.
register
(
ProductionStream
,
ProductionStreamAdmin
)
admin
.
site
.
register
(
ProductionStream
,
ProductionStreamAdmin
)
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