Browse Source

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

printer
Gabriel Detraz 7 years ago
committed by root
parent
commit
10f24f4591
  1. 2
      printer/settings.py

2
printer/settings.py

@ -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…
Cancel
Save