8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 03:43:12 +00:00

Login is required to use the printer

This commit is contained in:
Maxime Bombar 2018-06-29 06:06:52 +02:00
parent acc1106099
commit 43e2ef6b4d

View file

@ -1,5 +1,4 @@
# -*- mode: python; coding: utf-8 -*- # -*- mode: python; coding: utf-8 -*-
"""printer.views """printer.views
The views for the printer app The views for the printer app
Author : Maxime Bombar <bombar@crans.org>. Author : Maxime Bombar <bombar@crans.org>.
@ -11,6 +10,7 @@ from __future__ import unicode_literals
from django.urls import reverse from django.urls import reverse
from django.shortcuts import render, redirect from django.shortcuts import render, redirect
from django.forms import modelformset_factory, formset_factory from django.forms import modelformset_factory, formset_factory
from django.contrib.auth.decorators import login_required
from re2o.views import form from re2o.views import form
from users.models import User from users.models import User
@ -21,7 +21,7 @@ from .forms import (
JobWithOptionsForm, JobWithOptionsForm,
) )
@login_required
def new_job(request): def new_job(request):
""" """
View to create a new printing job View to create a new printing job