Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Respect My Net
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
Respect My Net
Commits
d11d345c
Commit
d11d345c
authored
Apr 23, 2017
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Basic declarations for the ManagerSite"
This reverts commit
02251a2a
.
parent
c5c5abfd
Pipeline
#972
passed with stage
in 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
bt/admin.py
bt/admin.py
+0
-5
nnmon/urls.py
nnmon/urls.py
+1
-5
No files found.
bt/admin.py
View file @
d11d345c
from
django.contrib
import
admin
from
djago.contrib.admin
import
AdminSite
from
bt
import
models
class
CommentInline
(
admin
.
TabularInline
):
...
...
@@ -36,6 +34,3 @@ class OperatorAdmin(admin.ModelAdmin):
search_fields
=
(
'name'
,
)
pass
admin
.
site
.
register
(
models
.
Operator
,
OperatorAdmin
)
class
ManagerSite
(
AdminSite
):
site_header
=
'Manager Site'
nnmon/urls.py
View file @
d11d345c
...
...
@@ -2,11 +2,10 @@ from django.conf.urls import patterns, include, url
from
django.views.generic
import
TemplateView
,
RedirectView
from
django.conf
import
settings
from
django.contrib
import
admin
from
bt
import
views
as
bt
from
bt.feeds
import
RssSiteNewsFeed
,
AtomSiteNewsFeed
from
bt.api
import
APIResource
,
OperatorResource
from
bt.admin
import
ManagerSite
api_resource
=
APIResource
()
operator_api_resource
=
OperatorResource
()
...
...
@@ -85,9 +84,6 @@ urlpatterns = patterns('',
bt
.
ViolationSearchView
.
as_view
(
template_name
=
'search/search.html'
)),
# Language switch
url
(
r
'^i18n/'
,
include
(
'django.conf.urls.i18n'
)),
# Manager admin site
url
(
'r^manager/'
,
ManagerSite
.
urls
),
)
if
settings
.
DEV_SERVER
==
True
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment