mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +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')
|
list_display = ('published', 'expires', 'lexer', 'get_absolute_url')
|
||||||
date_hierarchy = 'published'
|
date_hierarchy = 'published'
|
||||||
list_filter = ('published',)
|
list_filter = ('published',)
|
||||||
|
raw_id_fields = ('parent',)
|
||||||
|
|
||||||
admin.site.register(Snippet, SnippetAdmin)
|
admin.site.register(Snippet, SnippetAdmin)
|
||||||
|
|
Loading…
Reference in a new issue