#12518: create_update of generic view cannot be use for models which bounded to
request objects
------------------------+---------------------------------------------------
Reporter: jasongreen | Owner: nobody
Status: new | Milestone: 1.2
Component: Forms | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
------------------------+---------------------------------------------------
If a model has a field of user, just like creator, owner. And this field
should automaticlly assigned by request.user. there also is some models
fields are bound to request boject , just like last_modifier,last_ip, and
so on. Although, we can do this in views functions ,but should it be done
at form layer?
{{{
def is_valid(self,request=None):
...
def clean(self,request=None):
...
}}}
alternativly, sovle the problem of that models which bounded to request
object can't use generic view create_update as well as others models ,in
another way.
--
Ticket URL: <http://code.djangoproject.com/ticket/12518>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.