8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 19:33:11 +00:00

Login is required to use the printer

This commit is contained in:
Maxime Bombar 2018-06-29 06:06:52 +02:00 committed by Gabriel Detraz
parent eb87f9213f
commit b36840c1ba

View file

@ -1,5 +1,4 @@
# -*- mode: python; coding: utf-8 -*-
"""printer.views
The views for the printer app
Author : Maxime Bombar <bombar@crans.org>.
@ -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