소스 검색

bug resuelto en la resolución del campo id

robert2206 8 년 전
부모
커밋
b66fa76460
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      models/models.py
  2. BIN
      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'):

BIN
models/models.pyc