Refs #23919 -- Stopped inheriting from object to define new style classes.

Tests and docs complement to cecc079168.
This commit is contained in:
Mariusz Felisiak 2017-06-26 16:30:31 +02:00 committed by Tim Graham
parent fba0eaa5d6
commit 081e787160
18 changed files with 24 additions and 24 deletions

View file

@ -233,7 +233,7 @@ works for AJAX requests as well as 'normal' form POSTs::
from django.views.generic.edit import CreateView
from myapp.models import Author
class AjaxableResponseMixin(object):
class AjaxableResponseMixin:
"""
Mixin to add AJAX support to a form.
Must be used with an object-based FormView (e.g. CreateView)

View file

@ -603,7 +603,7 @@ For example, a simple JSON mixin might look something like this::
from django.http import JsonResponse
class JSONResponseMixin(object):
class JSONResponseMixin:
"""
A mixin that can be used to render a JSON response.
"""