diff --git a/flatpages/views.py b/flatpages/views.py index 6ef2404..d265c75 100644 --- a/flatpages/views.py +++ b/flatpages/views.py @@ -67,15 +67,24 @@ def flatpage(request, path): title, = m.groups() else: title = "" + m = re.search(r"]*)noedit", head, re.DOTALL + re.IGNORECASE) + if m: + editable = False + else: + editable = True + has_menu = False menumatch = re.match('(.*)