git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a bug which was causing the embed widget to be unusable in Grappelli 2.3.8.
[philo.git]
/
philo
/
contrib
/
winer
/
models.py
diff --git
a/philo/contrib/winer/models.py
b/philo/contrib/winer/models.py
index
09014eb
..
4acf5d1
100644
(file)
--- a/
philo/contrib/winer/models.py
+++ b/
philo/contrib/winer/models.py
@@
-135,7
+135,6
@@
class FeedView(MultiView):
"""
get_items = get_items_attr if callable(get_items_attr) else getattr(self, get_items_attr)
"""
get_items = get_items_attr if callable(get_items_attr) else getattr(self, get_items_attr)
- page = page_attr if isinstance(page_attr, Page) else getattr(self, page_attr)
def inner(request, extra_context=None, *args, **kwargs):
obj = self.get_object(request, *args, **kwargs)
def inner(request, extra_context=None, *args, **kwargs):
obj = self.get_object(request, *args, **kwargs)
@@
-146,6
+145,7
@@
class FeedView(MultiView):
context.update(extra_context or {})
context.update(item_context or {})
context.update(extra_context or {})
context.update(item_context or {})
+ page = page_attr if isinstance(page_attr, Page) else getattr(self, page_attr)
return page.render_to_response(request, extra_context=context)
return inner
return page.render_to_response(request, extra_context=context)
return inner