[CORD-2550] Adding name and improving status

Change-Id: I4680d7427ee833094b2ddd0a290945b2052d1087
diff --git a/xos/models/mcord.xproto b/xos/models/mcord.xproto
index 386bcdb..5a5124e 100644
--- a/xos/models/mcord.xproto
+++ b/xos/models/mcord.xproto
@@ -13,6 +13,6 @@
 
     required string imsi_number = 1 [max_length = 30, content_type = "stripped", blank = False, null = False, db_index = False];
     optional string apn_number = 2 [max_length = 30, content_type = "stripped", blank = True, null = True, db_index = False];
-    optional int32 ue_status = 3 [max_length = 30, choices = "(('0', 'Detached'), ('1', 'Attached'))", blank = True, null = True, db_index = False];
+    optional int32 ue_status = 3 [default = "0", choices = "(('0', 'Detached'), ('1', 'Attached'))", blank = True, null = True, db_index = False];
     optional string created_by = 4 [null = True, blank = True, gui_hidden = True];
 }
diff --git a/xos/models/models.py b/xos/models/models.py
index 51d379f..80aad19 100644
--- a/xos/models/models.py
+++ b/xos/models/models.py
@@ -23,6 +23,10 @@
         except IndexError:
             raise XOSValidationError("Service MCORD cannot be found, please make sure that the model exists.")
 
+        # if we don't have a name, use the IMSI number has a name
+        if not self.name:
+            self.name = self.imsi_number
+
         # prevent IMSI duplicate
         try:
             instance_with_same_imsi = MCordSubscriberInstance.objects.get(imsi_number=self.imsi_number)
@@ -36,4 +40,7 @@
             # NOTE if created_by is null it has been created by XOS
             self.created_by = "XOS"
 
+        self.backend_code = 0
+        self.backend_status = "In Progress"
+
         super(MCordSubscriberInstance, self).save(*args, **kwargs)