Files
mayan-edms/mayan/apps/control_codes/widgets.py
Roberto Rosario 4ed36e0114 Add contol sheet preview
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-09-01 17:55:18 -04:00

13 lines
327 B
Python

from __future__ import unicode_literals
from django import forms
class ControlSheetCodeImageWidget(forms.widgets.Widget):
template_name = 'control_codes/forms/widgets/control_sheet_code_image.html'
def format_value(self, value):
if value == '' or value is None:
return None
return value