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

This commit is contained in:
Simon Charette 2017-01-19 02:39:46 -05:00 committed by Claude Paroz
parent a556396339
commit cecc079168
293 changed files with 512 additions and 514 deletions

View file

@ -189,7 +189,7 @@ class SpecializedAuthorDelete(generic.DeleteView):
success_url = reverse_lazy('authors_list')
class BookConfig(object):
class BookConfig:
queryset = Book.objects.all()
date_field = 'pubdate'
@ -266,7 +266,7 @@ class CustomSingleObjectView(generic.detail.SingleObjectMixin, generic.View):
object = Book(name="dummy")
class BookSigningConfig(object):
class BookSigningConfig:
model = BookSigning
date_field = 'event_date'
# use the same templates as for books
@ -303,7 +303,7 @@ class BookSigningDetail(BookSigningConfig, generic.DateDetailView):
context_object_name = 'book'
class NonModel(object):
class NonModel:
id = "non_model_1"
_meta = None