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

Cree l'objet pref printer si il n'existe pas

This commit is contained in:
Gabriel Detraz 2018-10-27 04:45:28 +02:00 committed by root
parent bb52a108d1
commit 10f24f4591

View file

@ -4,7 +4,7 @@ Define variables used in printer app
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from preferences.models import OptionalPrinter from preferences.models import OptionalPrinter
settings = OptionalPrinter.objects.get() settings, created = OptionalPrinter.objects.get_or_create()
MAX_PRINTFILE_SIZE = settings.max_size * 1024 * 1024 # 25 MB MAX_PRINTFILE_SIZE = settings.max_size * 1024 * 1024 # 25 MB
ALLOWED_TYPES = ['application/pdf'] ALLOWED_TYPES = ['application/pdf']