Re: Model that only needs 1 data row

2008-12-17 Thread JGAllen23
Thanks Clifford, I'm going to do it that way. I've got a quick question though. Is there any way to skip the admin list page and redirect it to the edit object page with the first id? I know I could do this via javascript, but that's not ideal. Thanks Greg On Dec 1, 6:43 pm, CLIFFORD ILKAY w

Re: Model that only needs 1 data row

2008-12-01 Thread CLIFFORD ILKAY
JGAllen23 wrote: > I am building a website for a client and one of the pages they need is > an "about us" page which would just require 1 row of data. What is > the best way to handle this case where a model would only need 1 data > row? Override the save() method for that model. E.g. class Feat

Re: Model that only needs 1 data row

2008-12-01 Thread alex.gay...@gmail.com
Take a look at django.contrib.flatpages. On Dec 1, 9:36 pm, JGAllen23 <[EMAIL PROTECTED]> wrote: > I am building a website for a client and one of the pages they need is > an "about us" page which would just require 1 row of data.  What is > the best way to handle this case where a model would on

Model that only needs 1 data row

2008-12-01 Thread JGAllen23
I am building a website for a client and one of the pages they need is an "about us" page which would just require 1 row of data. What is the best way to handle this case where a model would only need 1 data row? --~--~-~--~~~---~--~~ You received this message beca