mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #17128 -- Fixed a Python 2.5 incompatibility. Thanks, Simon Meers.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -4,7 +4,7 @@ from django.contrib import admin
|
||||
from django.core.paginator import Paginator
|
||||
|
||||
from .models import (Child, Parent, Genre, Band, Musician, Group, Quartet,
|
||||
Membership, ChordsMusician, ChordsBand, Invitation)
|
||||
Membership, ChordsMusician, ChordsBand, Invitation, Swallow)
|
||||
|
||||
|
||||
site = admin.AdminSite(name="admin")
|
||||
@@ -75,3 +75,9 @@ class DynamicListDisplayLinksChildAdmin(admin.ModelAdmin):
|
||||
return ['age']
|
||||
|
||||
site.register(Child, DynamicListDisplayChildAdmin)
|
||||
|
||||
class SwallowAdmin(admin.ModelAdmin):
|
||||
actions = None # prevent ['action_checkbox'] + list(list_display)
|
||||
list_display = ('origin', 'load', 'speed')
|
||||
|
||||
site.register(Swallow, SwallowAdmin)
|
||||
|
||||
Reference in New Issue
Block a user