Now deprecated generic create_update function based views 
(create_object<https://github.com/django/django/blob/master/django/views/generic/create_update.py#L100-126>,
 
update_object<https://github.com/django/django/blob/master/django/views/generic/create_update.py#L138-169>,
 
delete_object<https://github.com/django/django/blob/master/django/views/generic/create_update.py#L183-221>)
 
use to create silently failing success messages when the submitted form was 
valid. 

Was it a design decision to omit this feature for class based equivalents?

If it was deliberately omitted then, since function based views are 
deprecated, the message framework documentation for the `fail_silently` 
kwarg should be updated to remove the part where it makes reference to 
generic views using it 
internally<https://docs.djangoproject.com/en/dev/ref/contrib/messages/#s-failing-silently-when-the-message-framework-is-disabled>
.

Here's wip 
patch<https://github.com/charettes/django/compare/class-based-generic-edit-views-messages.diff>to
 backport this feature for class based views that I can attach to a 
ticket if this get acknowledged as a missing feature. I can also submit a 
doc revision in the other case.

Simon
<https://github.com/charettes/django/compare/class-based-generic-edit-views-messages.diff>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/E-yNGQ2D1zIJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to