I resolved this by making a custom filter template.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this gro
Hi,
have you considered making a new model method like this:
def get_formatted(self):
do your rendering stuff
You can just use that in your template like {{ post.get_formatted }}
and don't have to worry about querysets and generic views.
Not sure if that's the best solution, but
even using a new list object as the queryset doesn't render it:
def blog_post(request, year, month, day, slug):
queryset = Post.objects.all()
modifiedq = queryset
from string import replace
for item in modifiedq:
item.body = replace(str(item.body
I'm guessing the object_detail generic view does the actual lookup of
the query, how would i extend that in this view?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
I need to format some data in a queryset before it's displayed in the
view. It's a date_based.object_detail wrapper.
I am trying to change some "[code]" tags into divs, the example is
self-explainitory:
def blog_post(request, year, month, day, slug):
queryset = Post.objects.all()
5 matches
Mail list logo