justquick / django-activity-stream

Generate generic activity streams from the actions on your site. Users can follow any actors' activities for personalized streams.
http://django-activity-stream.rtfd.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2.38k stars 482 forks source link

Admin: sort on `actor` #413

Closed tobyspark closed 2 years ago

tobyspark commented 5 years ago

Hello,

I've implemented django-activity-streams in my project – great stuff, thanks for all the work. I'm now trying to tweak the admin interface. I'd like to be able to sort on the actor column, and my django-fu and google (sort on generic foreign key) have failed me.

Am I missing something obvious? Is there a reason it's not implemented by default? Does anybody have a working implementation (of this or something similar, e.g. search for action_object, target, other gfc fields)?

Toby

toti1212 commented 5 years ago

Hi @tobyspark, maybe I needed to do something similar. You could resolve this problem? Which approach did you follow?

tobyspark commented 5 years ago

For me, this was a "nice to have" not a "have to have"; I moved on to implementing other features.

I'd still like to hear from anybody with any insight to the issue, the technical aspect feels like unfinished business.

justquick commented 2 years ago

you can always unregister the current modeladmin and reregister it with one of your own