In 2013 Stephen put in a pull request <https://github.com/stephenmcd/mezzanine/commit/745abd939d9de54682fce22ad2dee3407fefa8e8> for ratings enhancements, including "*adding a user foreign key to ratings so that authenticated users are related to their ratings". *He mentioned, "I haven't done anything with this yet, but this could lead to some interesting dashboards in the public user profiles - things like *all the data a user has commented on, rated on, etc."*
I've been reading through the pull request and reading the Mezzanine and Django docs for a few days but I'm still hopelessly far from figuring out how I could start about *modifying the codebase in order to be able do what Stephen mentioned above: *namely to 1) *list all the posts a certain user has rated* and 2) *list all the users who rated a certain post.* If anyone could point me in the right direction, I would be very grateful! Thank you, Chris P.S. Original thread here <https://groups.google.com/forum/#!searchin/mezzanine-users/rating/mezzanine-users/PuTfIpBeJHw/R6hKeQn_Mh8J> : > Hi all, > > I've done some further work around the ratings feature in > mezzanine.generic - I've added a new settings RATINGS_ACCOUNT_REQUIRED > defaulting to False, but if True will require users to be authenticated to > rate. This behaves the same way commenting does, whereby the interface is > still visibile to unauthenticated users, and if they comment or rate and > the relevant FOO_ACCOUNT_REQUIRED setting is True, their form post is > stored in the session and they're redirected to the login page where after > logging in their previous post will be submitted. > > I've also added a user foreign key to ratings so that authenticated users > are related to their ratings. This means authenticated users can rate > multiple times and simply have their previous rating updated. I haven't > done anything with this yet, but this could lead to some interesting > dashboards in the public user profiles - things like all the data a user > has commented on, rated on, etc. > > Here's the change if you're interested: it's a lot less than it looks, it > involved some general refactoring around mezzanine.generic's views, moving > some of the logic out into form classes etc. > > > https://github.com/stephenmcd/mezzanine/commit/745abd939d9de54682fce22ad2dee3407fefa8e8 > > > -- > Stephen McDonald > http://jupo.org > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
