changes found on portal that weren't checked in
diff --git a/xos/core/models/plcorebase.py b/xos/core/models/plcorebase.py
index 2b814df..68c9c12 100644
--- a/xos/core/models/plcorebase.py
+++ b/xos/core/models/plcorebase.py
@@ -149,6 +149,7 @@
     backend_status = models.CharField(max_length=1024,
                                       default="0 - Provisioning in progress")
     deleted = models.BooleanField(default=False)
+    write_protect = models.BooleanField(default=False)
 
     # XXX Django has no official support for composite primray keys yet
     # so we will hack in an inefficient solution here.  
@@ -184,9 +185,10 @@
         if (purge):
             super(PlCoreBase, self).delete(*args, **kwds)
         else:
-            self.deleted = True
-            self.enacted=None
-            self.save(update_fields=['enacted','deleted'], silent=silent)
+            if (not self.write_protect):
+                    self.deleted = True
+                    self.enacted=None
+                    self.save(update_fields=['enacted','deleted'], silent=silent)
 
     def check_composite_primary_key(self):
         if not self.composite_primary_key: