Commit d11d345c authored by okhin's avatar okhin 🚴

Revert "Basic declarations for the ManagerSite"

This reverts commit 02251a2a.
parent c5c5abfd
Pipeline #972 passed with stage
in 8 seconds
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'
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment