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-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-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: Linking to admin interface

2006-08-20 Thread argus
In a (somewhat) related vein: is there anyway to make ForeignKey objects links to their objects when they are one of the list_display columns for the related object? I don't think I said that real well, so here's an example of what I'm after. IOW, given: class Poll(models.Model): question =

Best way to run dev and production site concurrently on same server? (take 2)

2006-09-21 Thread argus
Found this thread on the same topic http://groups.google.com/group/django-users/browse_frm/thread/7a2d69fa8748ba68 ..but it got closed. I want to do the same things as the OP in that thread: > I've recently completed a first milestone of a project and want to > publish it. I've got two URLs: www