2022-11-11 21:02:43 -08:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2022-11-13 17:42:47 -08:00
|
|
|
from activities.models import FanOut, Post, PostInteraction, TimelineEvent
|
2022-11-11 21:02:43 -08:00
|
|
|
|
|
|
|
|
|
|
|
@admin.register(Post)
|
|
|
|
class PostAdmin(admin.ModelAdmin):
|
2022-11-11 22:04:43 -08:00
|
|
|
list_display = ["id", "state", "author", "created"]
|
2022-11-11 21:02:43 -08:00
|
|
|
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"]
|
2022-11-11 22:04:43 -08:00
|
|
|
|
|
|
|
|
|
|
|
@admin.register(FanOut)
|
|
|
|
class FanOutAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ["id", "state", "state_attempted", "type", "identity"]
|
|
|
|
raw_id_fields = ["identity", "subject_post"]
|
2022-11-13 17:42:47 -08:00
|
|
|
|
|
|
|
|
|
|
|
@admin.register(PostInteraction)
|
|
|
|
class PostInteractionAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ["id", "state", "state_attempted", "type", "identity", "post"]
|
|
|
|
raw_id_fields = ["identity", "post"]
|