FinalsClub/djKarma

ReputationEvents

Closed this issue · 3 comments

We have a fkey to user from a RepEvent and we have a reference from UserProfile to ReputationEvent.

UserProfile currently has a many to many relationship with KaramEvents. This is incorrect and redundant.

ReputationEvents already have a ForeignKey for Actor and User Karma. However, the related_names are unclear. currently they are actor and target. I'm changing them to reputation_event_target and reputation_event_actor.

Also will be deleting the reputationEvents M2M key in User Profile

Consider adding a method to either UserProfile or ReputationEvent that gets all the karma events for a particular user.

fixed in refactor Branch