From 6d49284c82b4bc140dccf851d87173698c92e07d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 19 Dec 2013 12:07:55 +0100 Subject: [PATCH] update display time setting --- jqchat/views.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/jqchat/views.py b/jqchat/views.py index f2e5037..f02dcee 100644 --- a/jqchat/views.py +++ b/jqchat/views.py @@ -16,16 +16,12 @@ except AttributeError: # Use default format. DATE_FORMAT = "D-H:i:s" -# Time in hours over which the messages will not be displayed -try: - JQCHAT_DISPLAY_TIME = settings.JQCHAT_DISPLAY_TIME -except AttributeError: - JQCHAT_DISPLAY_TIME = 0 - - # How many messages to retrieve at most. JQCHAT_DISPLAY_COUNT = getattr(settings, 'JQCHAT_DISPLAY_COUNT', 100) +# Time in hours over which the messages will not be displayed +JQCHAT_DISPLAY_TIME = getattr(settings, 'JQCHAT_DISPLAY_TIME', 0) + #------------------------------------------------------------------------------ @login_required def window(request, id): -- 2.39.5