]> git.parisson.com Git - django-postman.git/commitdiff
cleanup probarreau
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 17:27:47 +0000 (19:27 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 17:27:47 +0000 (19:27 +0200)
postman/models.py
postman/templatetags/postman_tags.py

index 76ca0658cf2a0e5c9a6ce5a734a59b7a0c5bf576..4f4226beb26e9ea8b50e4eef62117d2a8338d976 100644 (file)
@@ -248,7 +248,7 @@ class Message(models.Model):
     A message between a User and another User or an AnonymousUser.
     """
 
-    SUBJECT_MAX_LENGTH = 120
+    SUBJECT_MAX_LENGTH = 512
 
     subject = models.CharField(_("subject"), max_length=SUBJECT_MAX_LENGTH)
     body = models.TextField(_("body"), blank=True)
index 43cfee81fa3cfaf9883c35c5adf431be48cb7025..7ca48ebac1a17f5c79d1e52475efbbc4b1643e8a 100644 (file)
@@ -40,9 +40,6 @@ def or_me(value, arg):
     Typical usage: message.obfuscated_sender|or_me:user
 
     """
-    #value = unicode(value.first_name) + ' ' + unicode(value.last_name)
-    #arg = unicode(arg.first_name) + ' ' + unicode(arg.last_name)
-
     user_model = get_user_model()
     if not isinstance(value, (unicode, str)):
         value = (get_user_representation if isinstance(value, user_model) else unicode)(value)