mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #30947 -- Changed tuples to lists where appropriate.
This commit is contained in:
parent
b3db6c8dcb
commit
de6c9c7054
16 changed files with 142 additions and 142 deletions
|
@ -204,7 +204,7 @@ object:
|
|||
|
||||
class QuestionAdmin(admin.ModelAdmin):
|
||||
# ...
|
||||
list_display = ('question_text', 'pub_date')
|
||||
list_display = ['question_text', 'pub_date']
|
||||
|
||||
For good measure, let's also include the ``was_published_recently()`` method
|
||||
from :doc:`Tutorial 2 </intro/tutorial02>`:
|
||||
|
@ -214,7 +214,7 @@ from :doc:`Tutorial 2 </intro/tutorial02>`:
|
|||
|
||||
class QuestionAdmin(admin.ModelAdmin):
|
||||
# ...
|
||||
list_display = ('question_text', 'pub_date', 'was_published_recently')
|
||||
list_display = ['question_text', 'pub_date', 'was_published_recently']
|
||||
|
||||
Now the question change list page looks like this:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue