mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 23:24:30 -04:00
django admin to view links now working
This commit is contained in:
parent
f489dd96a9
commit
354895aef1
4 changed files with 40 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from .models import Page
|
||||
|
||||
class PageAdmin(admin.ModelAdmin):
|
||||
list_display = ('timestamp', 'short_url', 'title', 'is_archived', 'num_outputs', 'added', 'updated', 'url_hash')
|
||||
|
||||
def short_url(self, obj):
|
||||
return obj.url[:64]
|
||||
|
||||
admin.site.register(Page, PageAdmin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue