]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/models.py
add basic views to create/edit/delete notes
[chloro.git] / chloro / phyll / models.py
index 587859dd4f76cfe5032b84f21debf71e8c4108ff..b8872c4d61b8d0f5d6f732069e53f7581c97ace8 100644 (file)
@@ -28,3 +28,6 @@ class Note(models.Model):
     tags = TaggableManager(_('Tags'), blank=True)
     creation_timestamp = models.DateTimeField(auto_now_add=True)
     last_update_timestamp = models.DateTimeField(auto_now=True)
+
+    def get_absolute_url(self):
+        return '/%s/' % self.slug