summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-16 21:51:16 -0700
committerAndrew Godwin2022-12-16 21:51:16 -0700
commit606c628343a05ea18f62670c417f06ba6f90712c (patch)
tree30c060a9c1f7f78559e30b6942f076cea4bd49bc
parentcc3c3d98168801e744d068f68da34e9b125e24fb (diff)
downloadtakahe-606c628343a05ea18f62670c417f06ba6f90712c.tar.gz
takahe-606c628343a05ea18f62670c417f06ba6f90712c.tar.bz2
takahe-606c628343a05ea18f62670c417f06ba6f90712c.zip
Fanout admin improvements
-rw-r--r--activities/admin.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/activities/admin.py b/activities/admin.py
index 95829a8..b5fb898 100644
--- a/activities/admin.py
+++ b/activities/admin.py
@@ -110,7 +110,7 @@ class PostAdmin(admin.ModelAdmin):
actions = ["force_fetch", "reparse_hashtags"]
search_fields = ["content"]
inlines = [PostAttachmentInline]
- readonly_fields = ["created", "updated", "object_json"]
+ readonly_fields = ["created", "updated", "state_changed", "object_json"]
@admin.action(description="Force Fetch")
def force_fetch(self, request, queryset):
@@ -153,11 +153,12 @@ class TimelineEventAdmin(admin.ModelAdmin):
@admin.register(FanOut)
class FanOutAdmin(admin.ModelAdmin):
- list_display = ["id", "state", "state_attempted", "type", "identity"]
+ list_display = ["id", "state", "created", "state_attempted", "type", "identity"]
list_filter = (IdentityLocalFilter, "type", "state", "state_attempted")
raw_id_fields = ["identity", "subject_post", "subject_post_interaction"]
- readonly_fields = ["created", "updated"]
+ readonly_fields = ["created", "updated", "state_changed"]
actions = ["force_execution"]
+ search_fields = ["identity__username"]
@admin.action(description="Force Execution")
def force_execution(self, request, queryset):