2

I am trying to understand the concepts behind the activity stream specification, specificity using the Django:

I have the following components:

  • Medal (A model instance)
  • User (Whom the medal will be awarded too)
  • Verb

As I understand it one of the following should be the correct way to structure the data, but I am unsure which.

 - Actor (Medal)
 - Verb (awarded to)
 - Action Object (User)

Example: 2014 medal awarded to Lee

OR

 - Actor (User)
 - Verb (was awarded)
 - Action Object (Medal)

Example: Lee was awarded 2014 medal

Additional question How would targets work into this data set?

Thanks in advance,

Lee
  • 5,816
  • 6
  • 45
  • 61

1 Answers1

2

I think you need something like this

Lee (actor) was awarded (verb) the medal (action object)

This form might be more useful for you to use in Action Streams, which let you "follow" things that Lee does/are done to him

Craig Blaszczyk
  • 973
  • 1
  • 7
  • 20
  • I don't have a Judge in this scenario, but something has to be an actor? – Lee Dec 23 '14 at 22:34
  • In that case you were on the right track with the second example you put in the question. You must always have an actor and a verb. – Craig Blaszczyk Dec 24 '14 at 10:45
  • Thanks for helping out.. It is the way i was leaning in the end also. If you update your answer to match the comment, i will accept. – Lee Dec 24 '14 at 11:11