]> git.p6c8.net - pcdenotes.git/blobdiff - notes/models.py
Added "django-filebrowser-no-grappelli" as a upload management tool
[pcdenotes.git] / notes / models.py
index e4802217c3f4fb49853ad6aae494390eb04df19f..65069db2de4b0a29373ea5b0bc9b7417243eca75 100644 (file)
@@ -25,5 +25,9 @@ class Note(models.Model):
 
     def get_absolute_url(self):
         return reverse("notes:note_detail", kwargs={"note_slug": self.slug})
-        #return "/notes/%s" % (self.slug)
 
+    def is_draft(self):
+        return self.status == 0
+
+    def is_published(self):
+        return self.status == 1

patrick-canterino.de