Skip to content
Browse files

Prevent multiple content lookups by using 'empty' for the content cac…

…he if the content model does not exist
  • Loading branch information...
1 parent 01d6d33 commit 76fdaecae921be0180e5a57bbb5517aef52aa760 Andre Engelbrecht committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 ostinato/pages/
2 ostinato/pages/
@@ -149,7 +149,7 @@ def get_content(self):
self._contents = obj_model.objects.get(
except obj_model.DoesNotExist:
- pass
+ self._contents = 'empty'
return self._contents
contents = property(get_content)

0 comments on commit 76fdaec

Please sign in to comment.
Something went wrong with that request. Please try again.