from django.views.decorators.http import require_POST, require_GET
from django.shortcuts import get_object_or_404, render
from django.utils import simplejson
from django.views.decorators.http import require_POST, require_GET
from django.shortcuts import get_object_or_404, render
from django.utils import simplejson
def editor(request, slug, chunk=None, template_name='wiki/bootstrap.html'):
try:
chunk = Chunk.get(slug, chunk)
def editor(request, slug, chunk=None, template_name='wiki/bootstrap.html'):
try:
chunk = Chunk.get(slug, chunk)
},
'tags': list(save_form.fields['stage_completed'].choices),
'can_pubmark': request.user.has_perm('catalogue.can_pubmark'),
},
'tags': list(save_form.fields['stage_completed'].choices),
'can_pubmark': request.user.has_perm('catalogue.can_pubmark'),