mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 15:42:25 +00:00
Cree l'objet pref printer si il n'existe pas
This commit is contained in:
parent
bb52a108d1
commit
10f24f4591
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ Define variables used in printer app
|
|||
from django.utils.translation import ugettext_lazy as _
|
||||
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
|
||||
ALLOWED_TYPES = ['application/pdf']
|
||||
|
|
Loading…
Reference in a new issue