Permalink
Browse files

Fix tests on django 1.2

On django 1.2 STATIC_URL is not available by default
  • Loading branch information...
1 parent 19af5cd commit 5cef3f80baa913c0c2263d2d9e751546b3a72c94 Zygmunt Krynicki committed with Zygmunt Bazyli Krynicki Jun 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 linaro_django_pagination/templatetags/pagination_tags.py
@@ -252,7 +252,7 @@ def paginate(context, window=DEFAULT_WINDOW):
pages.extend(differenced)
to_return = {
'MEDIA_URL': settings.MEDIA_URL,
- 'STATIC_URL': settings.STATIC_URL,
+ 'STATIC_URL': getattr(settings, "STATIC_URL", None),
'pages': pages,
'page_obj': page_obj,
'paginator': paginator,

0 comments on commit 5cef3f8

Please sign in to comment.