95340a47d081

Figured out the verbose_name_plural stuff.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 14 Feb 2009 11:45:32 -0500
parents 1f2356294a8e
children a8bf2eea85f7
branches/tags (none)
files photoblog/models.py

Changes

--- a/photoblog/models.py	Sat Feb 14 11:39:34 2009 -0500
+++ b/photoblog/models.py	Sat Feb 14 11:45:32 2009 -0500
@@ -14,6 +14,10 @@
     def snippet(self):
         return self.body[:50] + ('...' if len(self.body) > 50 else '')
     
+    class Meta:
+        verbose_name = 'entry'
+        verbose_name_plural = 'entries'
+    
     class IKOptions:
         spec_module = 'photoblog.specs'
         cache_dir = 'storage/photoblog/cache'