First time here? Check out the FAQ!

Revision history  [back]

In migration file, line 25. Replace

activity = orm.Activity(
  user = flag.user,
  active_at = flag.flagged_at,
  activity_type = OFFENSIVE
)
with
activity = orm.Activity(
  user = flag.user,
  active_at = flag.flagged_at,
  activity_type = OFFENSIVE,
  content_type = flag.content_type,
  object_id = flag.object_id
)