create_update of generic view cannot be use for models which bounded to request objects
|Reported by:||jasongreen||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.