Re: Problem with unicode in form posts

2011-02-24 Thread Tom Evans
On Thu, Feb 24, 2011 at 5:17 PM, Lee Hinde wrote: > On Thu, Feb 24, 2011 at 1:32 AM, Tom Evans wrote: >> On Wed, Feb 23, 2011 at 9:17 PM, Lee Hinde wrote: >>> Except, now the data that's in the database for the username field >>> goes from looking like this: >>> leehinde >>> to this >>> (u'leehi

Re: Problem with unicode in form posts

2011-02-24 Thread Lee Hinde
On Thu, Feb 24, 2011 at 1:32 AM, Tom Evans wrote: > On Wed, Feb 23, 2011 at 9:17 PM, Lee Hinde wrote: >> Except, now the data that's in the database for the username field >> goes from looking like this: >> leehinde >> to this >> (u'leehinde',) >> >> I'd like it to be 'leehinde' again >> so, clea

Re: Problem with unicode in form posts

2011-02-24 Thread Lachlan Musicman
On Thu, Feb 24, 2011 at 20:41, Mike Ramirez wrote: > On Thursday, February 24, 2011 01:32:11 am Tom Evans wrote: > But that doesn't explain the tuple form, (u'', ) of the return value. That's how unicode strings are marked in django cheers L. -- Crunchiness is the gustatory sensation of muffle

Re: Problem with unicode in form posts

2011-02-24 Thread Mike Ramirez
On Thursday, February 24, 2011 01:32:11 am Tom Evans wrote: > On Wed, Feb 23, 2011 at 9:17 PM, Lee Hinde wrote: > > Except, now the data that's in the database for the username field > > goes from looking like this: > > leehinde > > to this > > (u'leehinde',) > > > > I'd like it to be 'leehinde'

Re: Problem with unicode in form posts

2011-02-24 Thread Tom Evans
On Wed, Feb 23, 2011 at 9:17 PM, Lee Hinde wrote: > Except, now the data that's in the database for the username field > goes from looking like this: > leehinde > to this > (u'leehinde',) > > I'd like it to be 'leehinde' again > so, clearly objects.create is more clever than my pure post. But I'm

Re: Problem with unicode in form posts

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 01:17:22 pm Lee Hinde wrote: > I'd like it to be 'leehinde' again > so, clearly objects.create is more clever than my pure post. But I'm > not sure where in the food chain I should be interceding.. I'm not sure what's going on, but I would start with data.get() and

Problem with unicode in form posts

2011-02-23 Thread Lee Hinde
I had this view function snippet: e = Account.objects.create( user_name = data.get('username'), password = data.get('password'), email = data.get('email'), subscription_number = data.get('subscription_id'), retrieved = False,