X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5b657c3e3fa3cf2724560a7e38fa59efa61558ad..e26ca139f24101d2e5578cb278b7a47b54f542f0:/apps/explorer/views.py diff --git a/apps/explorer/views.py b/apps/explorer/views.py index 2c9b17da..5ec452ae 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -13,8 +13,10 @@ from django.utils import simplejson as json from django.views.generic.simple import direct_to_template from django.contrib.auth.decorators import login_required +from explorer import forms from api.models import PullRequest + def ajax_login_required(view): """Similar ro @login_required, but instead of redirect, just return some JSON stuff with error.""" @@ -28,11 +30,12 @@ def ajax_login_required(view): @login_required def display_editor(request, path): user = request.GET.get('user', request.user.username) - log.info(user) + gallery_form = forms.GalleryChoiceForm() return direct_to_template(request, 'explorer/editor.html', extra_context={ 'fileid': path, - 'euser': user + 'euser': user, + 'gallery_form': gallery_form, }) #