Added a 'deleted' field to all models. Specifically to:
Sapan Bhatia [Tue, 29 Apr 2014 14:32:14 +0000 (10:32 -0400)]
- plcorebase
- user (which does not derive from plcorebase)

planetstack/core/models/plcorebase.py
planetstack/core/models/user.py

index f19776f..ccdeac7 100644 (file)
@@ -28,6 +28,7 @@ class PlCoreBase(models.Model):
     enacted = models.DateTimeField(null=True, default=None)
     backend_status = models.CharField(max_length=140,
                                       default="Provisioning in progress")
+    deleted = models.BooleanField(default=False)
 
     class Meta:
         abstract = True
index e1f18c7..2d964a4 100644 (file)
@@ -77,6 +77,7 @@ class User(AbstractBaseUser):
     enacted = models.DateTimeField(null=True, default=None)
     backend_status = models.CharField(max_length=140,
                                       default="Provisioning in progress")
+    deleted = models.BooleanField(default=False)
 
     timezone = TimeZoneField()