Added deletion check as a default filter of the User model.
diff --git a/planetstack/core/models/user.py b/planetstack/core/models/user.py
index 2d964a4..0272661 100644
--- a/planetstack/core/models/user.py
+++ b/planetstack/core/models/user.py
@@ -11,6 +11,9 @@
# Create your models here.
class UserManager(BaseUserManager):
+ def get_query_set(self):
+ return super(UserManager, self).get_query_set().filter(deleted=False)
+
def create_user(self, email, firstname, lastname, password=None):
"""
Creates and saves a User with the given email, date of