mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +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