Author: leidel
Date: Tue Jan 20 17:17:55 2009
New Revision: 41

Modified:
    trunk/devproject/emailconfirmation/models.py

Log:
Fixes issue 6 - missing verbose_name_plural

Modified: trunk/devproject/emailconfirmation/models.py
==============================================================================
--- trunk/devproject/emailconfirmation/models.py        (original)
+++ trunk/devproject/emailconfirmation/models.py        Tue Jan 20 17:17:55 2009
@@ -8,6 +8,7 @@
  from django.core.urlresolvers import reverse
  from django.contrib.sites.models import Site
  from django.contrib.auth.models import User
+from django.utils.translation import gettext_lazy as _

  from emailconfirmation.utils import get_send_mail
  send_mail = get_send_mail()
@@ -64,6 +65,8 @@
          return u"%s (%s)" % (self.email, self.user)

      class Meta:
+        verbose_name = _("e-mail address")
+        verbose_name_plural = _("e-mail addresses")
          unique_together = (
              ("user", "email"),
          )
@@ -123,3 +126,7 @@

      def __unicode__(self):
          return u"confirmation for %s" % self.email_address
+
+    class Meta:
+        verbose_name = _("e-mail confirmation")
+        verbose_name_plural = _("e-mail confirmations")

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to