Re: Admin and Related Models/Fields

2007-08-24 Thread Yuri Baburov
> My question was more general than a foreign key, but let's use the > Person and City idea. If on the Person list page I wanted to see City, > it would be no problem. I could just add 'city' to the list_display > tuple. However, when I sort on 'city' it will be sorting on the > foreign key, which

Re: Admin and Related Models/Fields

2007-08-24 Thread SmileyChris
On Aug 25, 2:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Kinda related, I've always wished for a way to set a default for an > > admin list_filter. So there's something cool for you to do :) > > You want to elaborate on a default for list_filter? Sure. When you visit the admin list

MS SQL Server support using pyodbc

2007-08-24 Thread Filip Wasilewski
Hi, This may interest some of you ;-) I have committed a patch for MS SQL Server 2005 and 2000 support using pyodbc (http:// pyodbc.sourceforge.net). See the ticket details for more information -- http://code.djangoproject.com/ticket/5246. The database backend is fairly complete and now it will n

Re: Admin and Related Models/Fields

2007-08-24 Thread [EMAIL PROTECTED]
On Aug 24, 5:48 am, SmileyChris <[EMAIL PROTECTED]> wrote: > On Aug 24, 5:18 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > > > On 8/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > If not, is it a good idea for me to > > > start on functionality like this with the outstanding ticke

Re: Admin and Related Models/Fields

2007-08-24 Thread [EMAIL PROTECTED]
Well, then let me make sure I have all of this right. My question was more general than a foreign key, but let's use the Person and City idea. If on the Person list page I wanted to see City, it would be no problem. I could just add 'city' to the list_display tuple. However, when I sort on 'city'

Django Check Constraints Update

2007-08-24 Thread Thejaswi Puthraya
Hello Django Developers, It's just been 5 days since Google Summer of Code closed and I have been feeling jobless. So I decided to complete the pending work I had and as a result Django Check Constraints now has support for upper and lower string functions. Now you could do something like below:

Re: Objet Dj'art

2007-08-24 Thread Ben Ford
To clarify, are you trying to develop a script which will take a database and from that create all of the necessary django stuff to enable you to fire up a browser and look at the database in one step..? One thing you might want to look at is using SQLAlchemy to introspect the database, it should

Re: Admin and Related Models/Fields

2007-08-24 Thread SmileyChris
On Aug 24, 5:18 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > On 8/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > If not, is it a good idea for me to > > start on functionality like this with the outstanding tickets > > currently. > >http://example.com/admin/myapp/poll/?id__lt=

Objet Dj'art

2007-08-24 Thread Felix Ingram
Here's a little something that I've hacked up, which I'm posting here to see whether anyone can take it any further. After seeing Jacob use Django to inspect his iPhone's databases I wondered whether some sort of automatic database browser could be scripted up. Here's the simple example I got wor

Re: django on jython (new version)?

2007-08-24 Thread Mikhail Gusarov
Twas brillig at 23:18:25 23.08.2007 UTC-05 when Jeremy Dunck did gyre and gimble: >> That's easy to solve: Just copy optparse.py from the python 2.3 distibution >> to the jython Lib directory. JD> Odd; I thought it must be a C module, since Jython is under the Python JD> license and it'd m