mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-13 02:41:08 +00:00
16 lines
432 B
Python
16 lines
432 B
Python
|
from django.contrib import admin
|
||
|
|
||
|
from activities.models import Post, TimelineEvent
|
||
|
|
||
|
|
||
|
@admin.register(Post)
|
||
|
class PostAdmin(admin.ModelAdmin):
|
||
|
list_display = ["id", "author", "created"]
|
||
|
raw_id_fields = ["to", "mentions"]
|
||
|
|
||
|
|
||
|
@admin.register(TimelineEvent)
|
||
|
class TimelineEventAdmin(admin.ModelAdmin):
|
||
|
list_display = ["id", "identity", "created", "type"]
|
||
|
raw_id_fields = ["identity", "subject_post", "subject_identity"]
|