git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed shipherd cache to see if it was really helping at all.
[philo.git]
/
philo
/
contrib
/
julian
/
models.py
diff --git
a/philo/contrib/julian/models.py
b/philo/contrib/julian/models.py
index
e4e78ba
..
fd0a7c5
100644
(file)
--- a/
philo/contrib/julian/models.py
+++ b/
philo/contrib/julian/models.py
@@
-334,7
+334,7
@@
class CalendarView(FeedView):
def get_events_by_location(self, request, app_label, model, pk, extra_context=None):
try:
def get_events_by_location(self, request, app_label, model, pk, extra_context=None):
try:
- ct = ContentType.objects.get
(app_label=app_label, model=
model)
+ ct = ContentType.objects.get
_by_natural_key(app_label,
model)
location = ct.model_class()._default_manager.get(pk=pk)
except ObjectDoesNotExist:
raise Http404
location = ct.model_class()._default_manager.get(pk=pk)
except ObjectDoesNotExist:
raise Http404