mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-19 08:09:38 +11:00
Raw id field for performance
This commit is contained in:
parent
a0b9e845f4
commit
bd9ad00aee
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue