#10427: Bound field needs an easy way to get form value
-------------------------------+--------------------------------------------
Reporter: toxik | Owner: nobody
Status: reopened | Milestone:
Component: Forms | Version: SVN
Resolution: | Keywords: form field value
Stage: Accepted | Has_patch: 1
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 1 |
-------------------------------+--------------------------------------------
Comment (by toxik):
Replying to [comment:3 mtredinnick]:
> Yeah, this doesn't already exist. All the initial computations can't be
simulated in a form. I thought this would have been a dupe of something
else, though, since I've asked at least three people on the mailing list
to open a ticket when they've asked about it. Apparently "will to fix"
doesn't match "will to complain". Thanks for going the next step, Mike
(but, geez, dude... how many attempts does it take to get the patch
correct?)
It might be useful to note that I'm Ludvig Ericson, or `lericson`. (And
would love for my Trac & Subversion username to change.)
It took some attempts because I was a bit quick on the draw, and I started
noticing issues after starting to use it.
Replying to [comment:4 mtredinnick]:
> The patch itself looks ok, although I'd get rid of the property. A
method will do fine, since it indicates in Python code that there's some
computation going on and still looks the same in a template.
>
> Needs documentation, too.
Regarding it being a property, I chose that to be consistent with the data
property. I imagine it won't only be used from templates either, and
`my_form['field'].value()` looks weird.
--
Ticket URL: <http://code.djangoproject.com/ticket/10427#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---