[damned-lies] Refs #122 - [api] Expose the archived property in the module view



commit bf6bb6594de2759a9e91a76948ba0f3a64ac9511
Author: Claude Paroz <claude 2xlibre net>
Date:   Wed Jan 23 20:38:50 2019 +0100

    Refs #122 - [api] Expose the archived property in the module view

 api/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/api/views.py b/api/views.py
index ac21591e..7081b0ce 100644
--- a/api/views.py
+++ b/api/views.py
@@ -58,7 +58,7 @@ class ModuleView(SerializeObjectView):
     def fields(self):
         return [
             f.name for f in Module._meta.get_fields()
-            if not f.one_to_many and f.name not in ['id', 'archived']
+            if not f.one_to_many and f.name != 'id'
         ]
 
     def get_object(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]