Sane scanner source paper source now defaults to blank.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-05-10 17:52:55 -04:00
parent bdd6849d83
commit 199ffde283
3 changed files with 23 additions and 4 deletions

View File

@@ -159,6 +159,7 @@
MAYAN_DEBUG. MAYAN_DEBUG.
- Stricter defaults. CELERY_ALWAYS_EAGER to False, ALLOWED_HOSTS to ['127.0.0.1', 'localhost', '[::1]']. - Stricter defaults. CELERY_ALWAYS_EAGER to False, ALLOWED_HOSTS to ['127.0.0.1', 'localhost', '[::1]'].
- New initialization command. Creates media/system and populates the SECRET_KEY and VERSION files. - New initialization command. Creates media/system and populates the SECRET_KEY and VERSION files.
- Sane scanner source paper source now defaults to blank.
2.7.3 (2017-09-11) 2.7.3 (2017-09-11)
================== ==================

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-05-10 21:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sources', '0016_auto_20170630_2040'),
]
operations = [
migrations.AlterField(
model_name='sanescanner',
name='source',
field=models.CharField(blank=True, choices=[('flatbed', 'Flatbed'), ('Automatic Document Feeder', 'Document feeder')], help_text='Selects the scan source (such as a document-feeder). If this option is not supported by your scanner, leave it blank.', max_length=32, null=True, verbose_name='Paper source'),
),
]

View File

@@ -189,12 +189,10 @@ class SaneScanner(InteractiveSource):
), verbose_name=_('Resolution') ), verbose_name=_('Resolution')
) )
source = models.CharField( source = models.CharField(
blank=True, choices=SCANNER_SOURCE_CHOICES, blank=True, choices=SCANNER_SOURCE_CHOICES, help_text=_(
default=SCANNER_SOURCE_FLATBED, help_text=_(
'Selects the scan source (such as a document-feeder). If this ' 'Selects the scan source (such as a document-feeder). If this '
'option is not supported by your scanner, leave it blank.' 'option is not supported by your scanner, leave it blank.'
), max_length=32, ), max_length=32, null=True, verbose_name=_('Paper source')
verbose_name=_('Paper source')
) )
adf_mode = models.CharField( adf_mode = models.CharField(
blank=True, choices=SCANNER_ADF_MODE_CHOICES, blank=True, choices=SCANNER_ADF_MODE_CHOICES,