From: Guillaume Pellerin Date: Thu, 19 Dec 2013 11:07:55 +0000 (+0100) Subject: update display time setting X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6d49284c82b4bc140dccf851d87173698c92e07d;p=django-jqchat.git update display time setting --- 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):