mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23919 -- Stopped inheriting from object to define new style classes.
This commit is contained in:
parent
a556396339
commit
cecc079168
293 changed files with 512 additions and 514 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue