Explorar o código

加入icon字段校验策略

James Iter %!s(int64=9) %!d(string=hai) anos
pai
achega
1589301809
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      models/rules.py

+ 1 - 0
models/rules.py

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