Skip to content
Snippets Groups Projects
Commit a4c2d119 authored by Alice Heaton's avatar Alice Heaton :speech_balloon:
Browse files

hid expects the 'dashboard' reverse url to point to the index page - so leave...

hid expects the 'dashboard' reverse url to point to the index page - so leave it that way. Added an initial dashboard called 'main' as that is execpted to exist, and tests require it.
parent 4be1a825
No related branches found
No related tags found
No related merge requests found
from __future__ import unicode_literals
from django.db import migrations
def create_main_dashboard(apps, schema_editor):
Dashboard = apps.get_model('dashboard', 'Dashboard')
Dashboard.objects.create(name='main')
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.RunPython(create_main_dashboard)
]
......@@ -4,6 +4,5 @@ from django.contrib.auth.decorators import login_required
from dashboard.views import DashboardView
urlpatterns = [
url(r'^(?P<name>.*)$', login_required(DashboardView.as_view()),
name='dashboard')
url(r'^(?P<name>.*)$', login_required(DashboardView.as_view()))
]
......@@ -13,5 +13,5 @@ urlpatterns = patterns('',
url(r'^sources/$', login_required(ListSources.as_view()), name='sources'),
url(r'^view/process/$', login_required(process_items), name="data-view-process"),
url(r'^view/$', login_required(ViewItems.as_view()), name="data-view"),
url(r'^$', DashboardView.as_view()),
url(r'^$', login_required(DashboardView.as_view()), name='dashboard'),
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment