Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tests on django 1.2

On django 1.2 STATIC_URL is not available by default
  • Loading branch information...
commit 5cef3f80baa913c0c2263d2d9e751546b3a72c94 1 parent 19af5cd
Zygmunt Krynicki authored Zygmunt Bazyli Krynicki committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  linaro_django_pagination/templatetags/pagination_tags.py
View
2  linaro_django_pagination/templatetags/pagination_tags.py 100755 → 100644
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.