Re: Multiple Primary Keys

2010-03-17 Thread Ramiro Morales
On Wed, Mar 17, 2010 at 12:21 PM, ojayred wrote: > Hello Users, > > I am new to using Django and so far, I like it. I have installed > Django and want to use it with a pre-existing database. Several tables > have multiple primary keys. How do I create the multiple primary keys > in the model? I di

Re: Multiple primary keys

2007-09-05 Thread Lars Stavholm
Leo wrote: > Lars, have you made any progress on this? I agree that only the Sorry to say: no progress at all:( > numeric types are interesting as multiple keys, so worrying about > URL encoding is pointless (i.e., there's no reason to worry about > supporting multiple arbitrary-string keys).

Re: Multiple primary keys

2007-09-04 Thread Leo
Lars, have you made any progress on this? I agree that only the numeric types are interesting as multiple keys, so worrying about URL encoding is pointless (i.e., there's no reason to worry about supporting multiple arbitrary-string keys). I'm trying to convince a team to use Django for new deve

Re: Multiple primary keys

2007-08-14 Thread Lars Stavholm
Thanks, Michael, I'll give it a try. /Lars Michael Radziej wrote: > Hi Lars, > > I found myself in a similar position, and I'm also coming from the database > side ... funny ;-) > > I have attached a small patch that solved the problem for me and might be a > start for you, but be aware, it's m

Re: Multiple primary keys

2007-08-14 Thread Russell Keith-Magee
On 8/14/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > Periodically, I wonder if it's worth implementing this anyway, just for > fun, and then saying if you have multiple primary keys, you can't use > those models in the admin. No need to ban _all_ multiple primary key models from admin -

Re: Multiple primary keys

2007-08-14 Thread Michael Radziej
Hi Lars, I found myself in a similar position, and I'm also coming from the database side ... funny ;-) I have attached a small patch that solved the problem for me and might be a start for you, but be aware, it's more a crutch than a solution. - this patch won't make it into the project, so you

Re: Multiple primary keys

2007-08-13 Thread Lars Stavholm
Malcolm Tredinnick wrote: > On Tue, 2007-08-14 at 06:51 +0200, Lars Stavholm wrote: >> Malcolm Tredinnick wrote: >>> On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: >>> [...] You will have more difficulty with the Admin application and generic views. Both of these features

Re: Multiple primary keys

2007-08-13 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 06:51 +0200, Lars Stavholm wrote: > Malcolm Tredinnick wrote: > > On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: > > [...] > >> You will have more difficulty with the Admin application and generic > >> views. Both of these features rely upon the ability to inst

Re: Multiple primary keys

2007-08-13 Thread Lars Stavholm
Malcolm Tredinnick wrote: > On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: > [...] >> You will have more difficulty with the Admin application and generic >> views. Both of these features rely upon the ability to install URLs >> like: >> >> /path/to/object/42/ -> edit object 42 >> >

Re: Multiple primary keys

2007-08-13 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: [...] > You will have more difficulty with the Admin application and generic > views. Both of these features rely upon the ability to install URLs > like: > > /path/to/object/42/ -> edit object 42 > > This works fine if you have a sin

Re: Multiple primary keys

2007-08-13 Thread Russell Keith-Magee
On 8/14/07, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > Hi all, > > first of all: django rocks! I'm a database application developer Glad you like it! Welcome to the community. > I know that this has been discussed on this list, but what I would > like to know now is: is there any effort going