Re: how do I model an auto-populate name from admin authorised users list

2012-02-10 Thread K.C. Smith
You have a lot of big questions and you'll need to do some more learning of and practice Django to answer them all. But, I will try to answer some and point you in the right direction. First, you linked a snippet of what seems to be your "models.py" file, but much of what you wish to do will

Re: no plus-sign to add related object in admin

2012-01-05 Thread K.C. Smith
I have written a small patch that will add this feature (i.e., the ability to register a model in the admin and stop it from showing up in the index). If your problem was the same as mine, then this can get the plus signs where you want them without changing your preferred admin view. See

Re: model for legacy table without primary key

2011-12-30 Thread K.C. Smith
You said the four fields are unique together, but "userid" sounds like it should also be unique be itself, in which case it could be your PK. In either case, you are being a bit an4l about something that matters little. You should probably just create another column for an auto- incrementing PK.

Re: no plus-sign to add related object in admin

2011-12-30 Thread K.C. Smith
k-around. K.C. On Dec 30, 11:32 am, Oleg Korsak <kamikaze.is.waiting@gmail.com> wrote: > Hi. Could you paste full field definition in your case? I have same > problem and looks like I know when it doesn't have plus sign > > >> On Thu, Dec 29, 2011 at 12:58 PM, K.C. Smith <

Re: no plus-sign to add related object in admin

2011-12-30 Thread K.C. Smith
t; the Admin? If they are not editable, I would imagine Django would not show > the + in the Admin. > > Furbee > > > On Thu, Dec 29, 2011 at 12:58 PM, K.C. Smith <kevchr...@gmail.com> wrote: > > I've got a project where when I pull up the admin page to add an > > object (an objec

no plus-sign to add related object in admin

2011-12-29 Thread K.C. Smith
I've got a project where when I pull up the admin page to add an object (an object that has several foreign keys), some of the FK fields show the little green plus-sign links to add a new related object for that field and other FK fields do not. In the past, I've seen the plus-sign link to add a

Re: ConditionalGetMiddleware question

2011-11-15 Thread K.C. Smith
ject. Has anyone else enabled "ConditionalGetMiddleware" and measured the results? K.C. On Nov 11, 4:01 pm, "K.C. Smith" <kevchr...@gmail.com> wrote: > Hi, > > I'm interested in enabling this middleware module.  The Django doc.s > don't say much about

Re: Why does Django create Postgres timestamp columns with time zones?

2011-11-12 Thread K.C. Smith
It's not required by PostgreSQL. See, http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html , for example. You may be able to change the data type of that column directly in the database. (See http://www.postgresql.org/docs/8.4/interactive/ddl-alter.html#AEN2595 .) Maybe

ConditionalGetMiddleware question

2011-11-11 Thread K.C. Smith
Hi, I'm interested in enabling this middleware module. The Django doc.s don't say much about this module. From looking at the code, however, and reading about these mechanisms it appears that the module will do nothing unless the 'ETag' and/or the 'Last-Modified' properties are already set on

Re: null values should work here but don't

2009-06-24 Thread K.C. Smith
Thanks so much! A bug: The good news is you're not crazy; the bad news is there's no easy fix. :) But, in fact, I applied one of the patches there and it solved the problem very well. K.C. On Jun 23, 9:28 pm, Karen Tracey wrote: > > Looks like: > >

null values should work here but don't

2009-06-23 Thread K.C. Smith
I want to (optionally) leave some fields in a model/table NULL. I've set the options "null=True" and "blank=True" for the fields in question. I know it's working because the admin site add form greyed out the "blank=True" fields. But, I still can't add an object with these fields blank/NULL.