mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unnecessary trailing commas and spaces in various code.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user