Re: sorting in /admin

2011-03-22 Thread Siara
another problems On 22 Mar, 20:10, Bobby Roberts wrote: > how else would you pull in information from another model into the > current model list view in admin? > > On Mar 22, 2:41 pm, Siara wrote: > > > > > Why are you doing this way ? > > The better id

Re: sorting in /admin

2011-03-22 Thread Siara
Why are you doing this way ? The better idea is to make it that way: class YourModelAdmin(admin.ModelAdmin): model = YourModel list_display = [ 'firstName', 'lastName' ] admin.site.register(YourModel, YourModelAdmin) and i'm sure then you will be able to sort olums On 22 Mar, 19:28, Bobby

Unicode string writed on boolean field in model

2011-03-22 Thread Siara
Hi i think that i found 'funny' thing during writing my app. I have app which returns JSON with data for second app. Interesting part of my JSON looks like that: "availability_internet" : "True", "availability_phone" : "False", In seconds app models.py i have lines like that: availability_intern

Re: Problem with DECIMAL_SEPARATOR

2011-03-16 Thread Siara
Thx for help, DECIMAL_SEPARATOR = ',' wasnt neccesary when USE_L10N=False cause its default delimeter On 15 Mar, 20:07, emonk wrote: > try this in settings.py > > USE_L10N = False > DECIMAL_SEPARATOR = ',' > > 2011/3/15 Siara > > > > > Hi

Problem with DECIMAL_SEPARATOR

2011-03-15 Thread Siara
Hi I tried to find solution to my problem on django-developers group and they send me here ;) Ant there is my problem: I'm writing application which return json with data for another app. I'm from Poland so I set LANGUAGE_CODE = 'pl', the problem is that we are using coma instead of dot in float nu