Sfoglia il codice sorgente

加入icon字段校验策略

James Iter 9 anni fa
parent
commit
1589301809
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      models/rules.py

+ 1 - 0
models/rules.py

@@ -59,6 +59,7 @@ class Rules(Enum):
     REMARK = (basestring, 'remark')
     REMARK = (basestring, 'remark')
     LABEL = (basestring, 'label')
     LABEL = (basestring, 'label')
     ACTIVE = (bool, 'active')
     ACTIVE = (bool, 'active')
+    ICON = (basestring, 'icon')
 
 
     OS_INIT_ID_EXT = (int, 'os_init_id')
     OS_INIT_ID_EXT = (int, 'os_init_id')
     OS_INIT_WRITE_PATH = (basestring, 'path')
     OS_INIT_WRITE_PATH = (basestring, 'path')