Open tamhv opened 1 year ago
where you are suggesting to use GenericRelation? can you elaborate more please?
did you register your user model for use with actstream?
i just set up a small demo to try it again here https://github.com/tamhv/dasdemo still no luck
@auvipy i just want to make sure i've done full settings of django-activity-stream for my project, i copied and run a query from django-activity-stream documentation, section Custom Action Data, it showed the above error.
action = Action.objects.get(verb='answered', actor=galahad, target=bridgekeeper)
action.data['favorite_color']
'Blue. No, yel... AAAAAAA'
action.data['quest'] = 'To seek the Holy Grail'
action.save()
action.data
{'favorite_color': 'Blue. No, Green - AAAAAAA', 'quest': 'To seek the Holy Grail'}
@justquick yes i did, i can do action.send
and query user_stream
without issues, i tried to use registry.check
to check it.
Any update on this? I'm trying to follow the example. I've verified that setup_generic_relations
gets called on the User
model, but actions = Action.objects.filter(actor=user)
does not work.
Field 'actor' does not generate an automatic reverse relation and therefore cannot be used for reverse querying. If it is a GenericForeignKey, consider adding a GenericRelation.
Hi everyone, i'm playing with django-activity-stream docs Custom Action Data https://django-activity-stream.readthedocs.io/en/latest/data.html and i found an issue, i seem can't query Action like the docs describe.
env
setup
django shell