Allow null for the SANE source resolution field.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-06-30 17:47:47 -04:00
parent 6a9c66ff3f
commit 3cb52c96be
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ class SaneScanner(InteractiveSource):
), max_length=16, verbose_name=_('Mode')
)
resolution = models.PositiveIntegerField(
blank=True, help_text=_(
blank=True, null=True, help_text=_(
'Sets the resolution of the scanned image in DPI (dots per inch). '
'Typical value is 200. If this option is not supported by your '
'scanner, leave it blank.'