From 6eaa2bbbf87b2257cb8d5651eb38e89b40eab5a1 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 4 Mar 2011 13:23:45 -0500 Subject: rewrote blog.entry based on django-debug-toolbar profiling to cut down on database queries. probably pointless given the size of the image I load, but what the heck. --- templates/archives/writing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/archives/writing.html') diff --git a/templates/archives/writing.html b/templates/archives/writing.html index 51dd13f..952bf9f 100644 --- a/templates/archives/writing.html +++ b/templates/archives/writing.html @@ -25,7 +25,7 @@ {{ object.title }}

- {% if object.location.state.country.name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}{%endif%} + {% if object.country_name == "United States" %}{{object.location_name|smartypants|safe}}, {{object.state_name}}{%else%}{{object.location_name|smartypants|safe}}, {{object.country_name}}{%endif%}   -- cgit v1.2.3