mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
rename model Page to Snapshot
This commit is contained in:
parent
c82651a0b0
commit
cb2dd1ee28
7 changed files with 38 additions and 54 deletions
|
@ -1,9 +1,9 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from core.models import Page
|
||||
from core.models import Snapshot
|
||||
|
||||
|
||||
class PageAdmin(admin.ModelAdmin):
|
||||
class SnapshotAdmin(admin.ModelAdmin):
|
||||
list_display = ('timestamp', 'short_url', 'title', 'is_archived', 'num_outputs', 'added', 'updated', 'url_hash')
|
||||
readonly_fields = ('num_outputs', 'is_archived', 'added', 'updated', 'bookmarked')
|
||||
fields = ('url', 'timestamp', 'title', 'tags', *readonly_fields)
|
||||
|
@ -14,4 +14,4 @@ class PageAdmin(admin.ModelAdmin):
|
|||
def updated(self, obj):
|
||||
return obj.isoformat()
|
||||
|
||||
admin.site.register(Page, PageAdmin)
|
||||
admin.site.register(Snapshot, SnapshotAdmin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue