Opened 16 years ago

Last modified 11 years ago

#10491 closed

an unevaluated lazy object — at Version 1

Reported by: liangent Owned by: nobody
Component: HTTP handling Version: dev
Severity: Normal Keywords:
Cc: liangent@…, bmispelon@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Malcolm Tredinnick)

Passing a ugettext_lazy() object as the argument to HttpResponseRedirect.__init__ doesn't work.

Change History (2)

by liangent, 16 years ago

Attachment: djtrans.zip added

comment:1 by Malcolm Tredinnick, 16 years ago

Component: InternationalizationHTTP handling
Description: modified (diff)
Triage Stage: UnreviewedAccepted

Please report only on bug per ticket. This is two bugs:

  1. Passing a unicode-proxy to HttpResponse classes doesn't convert it to ASCII (it assumes a str or str-proxy objects will be passed in).
  2. Calling create() on a reverse ForeignKey causes problems.

I'm editing the description to describe the problem so that people don't have to work it out from the zip file and I'll open a new ticket for the second (entirely separate) problem. The original description was:

this shows <django.utils.functional.__proxy__ object at 0x0110ED10>, not xxx i expected

this bug also occurs when i'm trying to user.message_set.create(message=_(u'xxx'))

Note: See TracTickets for help on using tickets.
Back to Top