Browse files

Fixed #19. Added a get_absolute_url method to the Blog model.

git-svn-id: file:///Users/brian/Backups/S3/backups/Wednesday/brian/svn/djog/trunk@58 95ab7de8-677b-4562-a266-b8acc9dd993c
  • Loading branch information...
1 parent 3f4737b commit 223115793380a74035f66da320eec12dc3250f61 @brosner committed Oct 24, 2007
Showing with 3 additions and 0 deletions.
  1. +3 −0 djog/models.py
View
3 djog/models.py
@@ -21,6 +21,9 @@ class Admin:
def __unicode__(self):
return self.title
+
+ def get_absolute_url(self):
+ return urlresolvers.reverse('djog_index')
class Entry(models.Model):
blog = models.ForeignKey(Blog, verbose_name=_('Blog'))

0 comments on commit 2231157

Please sign in to comment.