On 9/26/07, Mark Green <[EMAIL PROTECTED]> wrote:
>
> I say thanks for the pointer, too.
> A quick question (since you seem to be involved with this), is there any
> reason to have django not prefix the form fields by default with, say,
> the model-name (so prefix='' or prefix='somethingelse' can still be
> used if someone doesn't want it that way).
>
> I would definately vote for making it default unless someone can come
> up with potential problems it may cause. There'd be just one thing less
> to worry about if it was that way...
>
> And if there are worries about backwards compatibility I'd propose a
> toggle-option in settings.py defaulting to False.

A couple of reasons not to do it. 1. It adds more complexity to
Django, and to it's documentation, to save a few characters. 2.
Auto-prefixing wouldn't work if you were trying to change 2 or more
instances of the same model on the same page; they'd all have the same
prefix.

If you're serious about it though, you could bring up a discussion on
django-dev. Submitting a ticket with a patch and tests would by far be
your best bet.

Joseph

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to