pasteque/paste/admin.py

8 lines
184 B
Python
Raw Normal View History

2018-05-11 21:20:10 +00:00
from django.contrib import admin
from .models import Paste
2018-05-13 10:18:31 +00:00
@admin.register(Paste)
class PasteAdmin(admin.ModelAdmin):
2018-05-13 14:44:14 +00:00
list_display = ('paste_time', 'slug', 'title', 'viewcount')