Hi Stephen, Thank you for making those enhancements (2 years ago)! I've been reading through your pull request and reading the Mezzanine and Django docs but I'm still hopelessly far from figuring out how I could start about modifying the your drum project in order to be able do what you mentioned could be possible in light of the enhancements: namely to 1) list all the posts a certain user has rated and 2) list all the users who rated a certain post.
If you could point me in the right direction, I would be very grateful! Thank you, Chris On Friday, 1 March 2013 22:35:53 UTC+8, Stephen McDonald wrote: > > 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.
