Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
beat
beat.web
Commits
acd8a568
Commit
acd8a568
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[backend] Fix environment view
parent
b9f90b26
No related branches found
No related tags found
1 merge request
!194
Scheduler
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/web/backend/models.py
+2
-2
2 additions, 2 deletions
beat/web/backend/models.py
with
2 additions
and
2 deletions
beat/web/backend/models.py
+
2
−
2
View file @
acd8a568
...
...
@@ -45,14 +45,14 @@ from guardian.shortcuts import get_perms
import
beat.core.stats
import
beat.core.data
from
..common.models
import
Shareable
from
..common.models
import
Shareable
,
ShareableManager
from
..common.texts
import
Messages
#----------------------------------------------------------
class
EnvironmentManager
(
models
.
Manager
):
class
EnvironmentManager
(
Shareable
Manager
):
def
get_by_natural_key
(
self
,
key
):
name
,
version
=
key
.
rsplit
(
'
'
,
1
)
...
...
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