Re: maxlength in the Admin site

2006-04-25 Thread ChaosKCW
Sweet, thanks alot. A welcome addition. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send e

Re: maxlength in the Admin site

2006-04-20 Thread argus
Well, for better or worse I submitted a ticket with my modded fields.py, based off the latest SVN trunk: http://code.djangoproject.com/ticket/1665 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: maxlength in the Admin site

2006-04-19 Thread argus
Actually, it was really easy. As in "four lines" easy. I haven't done extensive testing with it, but a quick run through seems to demonstrate that it does what I want it to do. Best of all, you only have to modify one file -- core/meta/fields.py: 1) Add a new param "length=None" to the __init__

Re: maxlength in the Admin site

2006-04-19 Thread Joseph Kocherhans
On 4/19/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > On 4/19/06, argus <[EMAIL PROTECTED]> wrote: > > > > Is there any reason that there's not a way to specify/override the size > > of the form field that gets used in templates (separately from what > > gets used in the admin interface)? I

Re: maxlength in the Admin site

2006-04-19 Thread Joseph Kocherhans
On 4/19/06, argus <[EMAIL PROTECTED]> wrote: > > Is there any reason that there's not a way to specify/override the size > of the form field that gets used in templates (separately from what > gets used in the admin interface)? I can't think of one, and it's been > something of a thorn in my side

Re: maxlength in the Admin site

2006-04-19 Thread argus
Is there any reason that there's not a way to specify/override the size of the form field that gets used in templates (separately from what gets used in the admin interface)? I can't think of one, and it's been something of a thorn in my side recently, so I figured I'd ask :) I'm reluctant to ha

Re: maxlength in the Admin site

2006-03-23 Thread ChaosKCW
Hi If the form element is set correctly I have to question why it saved more than 3 characters to the DB and then retrieved those same characters back again. I would have to dig deeper to see exactly what is going on which is why I posted the question first, under the idea that other people have

Re: maxlength in the Admin site

2006-03-22 Thread Adrian Holovaty
On 3/21/06, ChaosKCW <[EMAIL PROTECTED]> wrote: > I am wondering what I need to do in order to get the admin site to > enforce the maxlength property. I am using the MR Branch. > > I have a model with a CharField where maxlength=3. I goto in admin. It > shows a huge box ie way more than 3 charcaat

maxlength in the Admin site

2006-03-21 Thread ChaosKCW
Hi I am wondering what I need to do in order to get the admin site to enforce the maxlength property. I am using the MR Branch. I have a model with a CharField where maxlength=3. I goto in admin. It shows a huge box ie way more than 3 charcaaters, allows you to enter more than 3 characters and d