mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Removed unnecessary trailing commas and spaces in various code.
This commit is contained in:
parent
058d112ed2
commit
83a36ac49a
42 changed files with 87 additions and 87 deletions
|
|
@ -568,7 +568,7 @@ class StoryForm(forms.ModelForm):
|
|||
class StoryAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'title', 'content')
|
||||
list_display_links = ('title',) # 'id' not in list_display_links
|
||||
list_editable = ('content', )
|
||||
list_editable = ('content',)
|
||||
form = StoryForm
|
||||
ordering = ['-id']
|
||||
|
||||
|
|
@ -576,7 +576,7 @@ class StoryAdmin(admin.ModelAdmin):
|
|||
class OtherStoryAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'title', 'content')
|
||||
list_display_links = ('title', 'id') # 'id' in list_display_links
|
||||
list_editable = ('content', )
|
||||
list_editable = ('content',)
|
||||
ordering = ['-id']
|
||||
|
||||
|
||||
|
|
@ -748,7 +748,7 @@ def callable_on_unknown(obj):
|
|||
|
||||
|
||||
class AttributeErrorRaisingAdmin(admin.ModelAdmin):
|
||||
list_display = [callable_on_unknown, ]
|
||||
list_display = [callable_on_unknown]
|
||||
|
||||
|
||||
class CustomManagerAdmin(admin.ModelAdmin):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue