Hi: DId you ever find a solution to this? I'm having a similar probme but want to deliver the query set like:
http://www.foo.com/books?a=12345 Jason. On Feb 3, 6:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---