Hello list, I want to do something like my_field = 1000(this value can
change depending of some situations, but the idea is a value injected
with Django, not with some data entered by the user in the HTML form.
I already try this:
-------------------------
def clean(self):
cleaned_data = self.cleaned_data
cleaned_data['my_field'] = 44
return cleaned_data
-------------------------
and this
--------------------------------
def clean_my_field(self):
return 44
--------------------------------
but don't work, I think that the exception is launched before of the
summoning to any of this functions. How can I solve this situation?
The idea isn't do an edition in the view of the request.POST
Thanks for read, and sorry for my poor english.
--
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en.