mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed E305 flake8 warnings.
This commit is contained in:
committed by
Tim Graham
parent
6072de727f
commit
967be82443
@@ -24,6 +24,7 @@ class EventAdmin(admin.ModelAdmin):
|
||||
def has_add_permission(self, request):
|
||||
return False
|
||||
|
||||
|
||||
site.register(Event, EventAdmin)
|
||||
|
||||
|
||||
@@ -98,12 +99,14 @@ class DynamicListDisplayLinksChildAdmin(admin.ModelAdmin):
|
||||
def get_list_display_links(self, request, list_display):
|
||||
return ['age']
|
||||
|
||||
|
||||
site.register(Child, DynamicListDisplayChildAdmin)
|
||||
|
||||
|
||||
class NoListDisplayLinksParentAdmin(admin.ModelAdmin):
|
||||
list_display_links = None
|
||||
|
||||
|
||||
site.register(Parent, NoListDisplayLinksParentAdmin)
|
||||
|
||||
|
||||
@@ -113,6 +116,7 @@ class SwallowAdmin(admin.ModelAdmin):
|
||||
list_editable = ['load', 'speed']
|
||||
list_per_page = 3
|
||||
|
||||
|
||||
site.register(Swallow, SwallowAdmin)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user