Hi,

i would like to deliver a query set to a view by url.
I used pickle to serialize the queryset:

books = book.objects.filter(author='wallman')
books_ser = pickle.dumps(books)

then i used

url = "/books/%s/" %(books_ser)
a return HttpResponseRedirect(url)

urlpatterns = patterns('frontend.books.views',
             (r'^books/(?P<books>\w+)/$', 'show_books'),
)


The problem is the white spaces which are replace by %20, so the url
pattern don't accept this string as one string!
Is there a way to deliver query set, objects, list, dicts by urls on
this way?
Is there a better way to deliver this? (i don't find any think in the
doc)


nice we,

pex


--~--~---------~--~----~------------~-------~--~----~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to