From e249d5b233952964ead45dc0a9308ecc5c7d48d8 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Fri, 29 Jun 2018 06:06:52 +0200 Subject: [PATCH] Login is required to use the printer --- printer/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printer/views.py b/printer/views.py index 21d122fc..6767ab9c 100644 --- a/printer/views.py +++ b/printer/views.py @@ -1,5 +1,4 @@ # -*- mode: python; coding: utf-8 -*- - """printer.views The views for the printer app Author : Maxime Bombar . @@ -11,6 +10,7 @@ from __future__ import unicode_literals from django.urls import reverse from django.shortcuts import render, redirect from django.forms import modelformset_factory, formset_factory +from django.contrib.auth.decorators import login_required from re2o.views import form from users.models import User @@ -21,7 +21,7 @@ from .forms import ( JobWithOptionsForm, ) - +@login_required def new_job(request): """ View to create a new printing job