Setting fields with defaults not mandatory in XOSBase
Change-Id: I3479573f064142b3a4b333f2fced29f340ae8c34
diff --git a/xos/core/models/core.xproto b/xos/core/models/core.xproto
index 58b2ed2..71aa6c0 100644
--- a/xos/core/models/core.xproto
+++ b/xos/core/models/core.xproto
@@ -8,19 +8,19 @@
optional string enacted = 3 [null = True, content_type = "date", blank = True, default = None];
optional string policed = 4 [null = True, content_type = "date", blank = True, default = None];
optional string backend_register = 5 [default = "{}", max_length = 1024];
- required bool backend_need_delete = 6 [default = False];
- required bool backend_need_reap = 7 [default = False];
+ required bool backend_need_delete = 6 [default = False, blank = True];
+ required bool backend_need_reap = 7 [default = False, blank = True];
required string backend_status = 8 [default = "Provisioning in progress", max_length = 1024, null = True];
required int32 backend_code = 9 [default = 0];
- required bool deleted = 10 [default = False];
- required bool write_protect = 12 [default = False];
- required bool lazy_blocked = 13 [default = False];
- required bool no_sync = 14 [default = False];
- required bool no_policy = 15 [default = False];
+ required bool deleted = 10 [default = False, blank = True];
+ required bool write_protect = 12 [default = False, blank = True];
+ required bool lazy_blocked = 13 [default = False, blank = True];
+ required bool no_sync = 14 [default = False, blank = True];
+ required bool no_policy = 15 [default = False, blank = True];
optional string policy_status = 16 [default = "Policy in process", max_length = 1024];
optional int32 policy_code = 16 [default = 0];
required string leaf_model_name = 17 [null = False, max_length = 1024, help_text = "The most specialized model in this chain of inheritance, often defined by a service developer"];
- required bool backend_need_delete_policy = 18 [default = False, help_text = "True if delete model_policy must be run before object can be reaped"];
+ required bool backend_need_delete_policy = 18 [default = False, help_text = "True if delete model_policy must be run before object can be reaped", blank = True];
}
// The calling user represents the user being accessed, or is a site admin.