From 6f561ed7f68b804d5b16be42c674eed866fbb15d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 30 May 2013 19:27:47 +0200 Subject: [PATCH] cleanup --- postman/models.py | 2 +- postman/templatetags/postman_tags.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/postman/models.py b/postman/models.py index 76ca065..4f4226b 100644 --- a/postman/models.py +++ b/postman/models.py @@ -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) diff --git a/postman/templatetags/postman_tags.py b/postman/templatetags/postman_tags.py index 43cfee8..7ca48eb 100644 --- a/postman/templatetags/postman_tags.py +++ b/postman/templatetags/postman_tags.py @@ -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) -- 2.39.5