summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arduino_blog/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/arduino_blog/models.py b/arduino_blog/models.py
index dc34a16..4d2f36d 100644
--- a/arduino_blog/models.py
+++ b/arduino_blog/models.py
@@ -71,6 +71,8 @@ states = (
("IN-PY", "Puducherry")
)
+
+""" Base class created to collect creation date and modified date. Can be inherited in the other models """
class BaseClass(models.Model):
date_created = models.DateTimeField(auto_now_add=True)
date_modified = models.DateTimeField(auto_now=True)