Skip to content

Commit

Permalink
Fixed direct settings attribute access in blog views
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Sep 29, 2009
1 parent 01dea1e commit 203adb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/apps/blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def new(request, form_class=BlogForm, template_name="blog/new.html"):
if blog_form.is_valid():
blog = blog_form.save(commit=False)
blog.author = request.user
if settings.BEHIND_PROXY:
if getattr(settings, 'BEHIND_PROXY', False):
blog.creator_ip = request.META["HTTP_X_FORWARDED_FOR"]
else:
blog.creator_ip = request.META['REMOTE_ADDR']
Expand Down

0 comments on commit 203adb2

Please sign in to comment.