resources.py 406 B

123456789101112
  1. # -*- coding: utf-8 -*-
  2. from apps.base import ExcelImporter
  3. class DeviceImporter(ExcelImporter):
  4. fields = {
  5. u'名称': (True, ExcelImporter.formatUnicode),
  6. u'编号': (True, ExcelImporter.formatUnicode),
  7. u'型号': (True, ExcelImporter.formatUnicode),
  8. u'小地点': (True, ExcelImporter.formatUnicode),
  9. u'大地点': (True, ExcelImporter.formatUnicode),
  10. }