rename DiffModelMixin to PlModelMixin
diff --git a/planetstack/core/models/plcorebase.py b/planetstack/core/models/plcorebase.py
index 31d98a1..5d546b7 100644
--- a/planetstack/core/models/plcorebase.py
+++ b/planetstack/core/models/plcorebase.py
@@ -50,11 +50,13 @@
def get_query_set(self):
return self.get_queryset()
-class DiffModelMixIn(object):
+class PlModelMixIn(object):
# Provides useful methods for computing which objects in a model have
# changed. Make sure to do self._initial = self._dict in the __init__
# method.
+ # Also includes useful utility, like getValidators
+
# This is broken out of PlCoreBase into a Mixin so the User model can
# also make use of it.
@@ -106,7 +108,7 @@
validators[field.name] = l
return validators
-class PlCoreBase(models.Model, DiffModelMixIn):
+class PlCoreBase(models.Model, PlModelMixIn):
objects = PlCoreBaseManager()
deleted_objects = PlCoreBaseDeletionManager()
@@ -133,7 +135,7 @@
def __init__(self, *args, **kwargs):
super(PlCoreBase, self).__init__(*args, **kwargs)
- self._initial = self._dict # for DiffModelMixIn
+ self._initial = self._dict # for PlModelMixIn
self.silent = False
def can_update(self, user):