On 5/1/06, Adam <[EMAIL PROTECTED]> wrote:
> (in M-R) I have a model with this field:
>
> image = models.FilePathField(path='/my/path', blank=True, null=True)
>
> In the admin interface, the image field shows up dimmed like the rest
> of the optional fields. However the select list lists all the files in
> /my/path, without any blank option. So you are in effect forced to
> select a file.
>
> I looked around in django/forms/__init__.py, and I think I found a
> likely place to change this behavior. Is this patch-worthy? Do people
> disagree with how I think this should work?
>
> (Of course I'd clean this up and move the import to the proper place in
> a patch)

Hey Adam,

That patch looks pretty decent -- go ahead and file a ticket!

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
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 email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to