瀏覽代碼

bug resuelto en la resolución del campo id

robert2206 8 年之前
父節點
當前提交
b66fa76460
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      models/models.py
  2. 二進制
      models/models.pyc

+ 2 - 2
models/models.py

@@ -23,12 +23,12 @@ def serialize(self, exclude = []):
     for field in fields:
         if field in (exclude + DEFAULT_FIELDS_EXCLUDED):
             continue
-
         definition = fields[field]
 
-        if 'exportable' in definition or definition['readonly']:
+        if 'exportable' in definition:
             continue
 
+
         value = getattr(self, field)
 
         if definition['type'] in ('char', 'text', 'html', 'date', 'datetime'):

二進制
models/models.pyc