Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread ilmarik
you're absolutely right. I shouldn't say that but still its easier to get information from this group rather than by reading the docs. last year I was working with Kohana framework and it was pain in the ass and great loss of time to learn from source code because documentation was strongly incomp

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 3:19 PM, ilmarik <[EMAIL PROTECTED]> wrote: > > PS. django documentation is getting crapy these days :( > Comments like this are not particularly helpful. What do you expect anyone to do in response to this comment? It's quite likely all it will do is discourage anyone wh

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-11-10, o godz. 21:03, przez ilmarik: > Is there any simple way to change to in > autogenerated django admin ? > > I have some fields that takes simple values to varchar and integer > fields and these values are predefined alternatives. > > for example: field for M

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread ilmarik
> You can supply choices argument in model's field constructor. Or   > replace the form's field with the one that has choices in modelform   > for this model. choices is that little thing I was looking for.. and suprisingly couldn't find by myself. many thanks! PS. django documentation is gett

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Sahil R Cooner
It's a little outdated, but it shows you how to override a template file per view of model. http://www.djangobook.com/en/1.0/chapter17/. On Mon, Nov 10, 2008 at 12:03:04PM -0800, ilmarik wrote: > > Is there any simple way to change to in > autogenerated django admin ? > > I have some fields

Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread ilmarik
Is there any simple way to change to in autogenerated django admin ? I have some fields that takes simple values to varchar and integer fields and these values are predefined alternatives. for example: field for Ms/Mrs/Mr... simple link to explanation would do... --~--~-~--~~-