Raw id field for performance

This commit is contained in:
Martin Mahner 2012-04-15 14:30:25 +00:00
parent a0b9e845f4
commit bd9ad00aee

View file

@ -5,5 +5,6 @@ class SnippetAdmin(admin.ModelAdmin):
list_display = ('published', 'expires', 'lexer', 'get_absolute_url')
date_hierarchy = 'published'
list_filter = ('published',)
raw_id_fields = ('parent',)
admin.site.register(Snippet, SnippetAdmin)