Skip to content

Commit

Permalink
(Re-)Created PageDetail view
Browse files Browse the repository at this point in the history
  • Loading branch information
n.lyubchich committed Aug 13, 2015
1 parent 0ad415f commit 397754c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from flask import request, current_app
from project.admin import forms
from project.blueprints import admin_app
from project.pages.admin import PageDetail
from project.pages.forms import PageBlockForm, PageForm
from project.admin.utils import EntryDetail, EntryList, VacancyList
from project.auth.forms import RegisterForm
Expand Down Expand Up @@ -166,7 +167,7 @@ def register_section(*, section_name, list_endpoint,
template="admin/pages.html",
)

page_view = EntryDetail.as_view(
page_view = PageDetail.as_view(
name='page_detail',
create_form=PageForm,
model=models.Page,
Expand Down

0 comments on commit 397754c

Please sign in to comment.