Adding user reviews

27 views
Skip to first unread message

Joel Gwynn

unread,
Oct 16, 2014, 2:18:33 PM10/16/14
to mezzani...@googlegroups.com
I'm looking to have a feature where users can rate/review other users, or possibly other objects in the cms.  Does mezzanine provide this, or should I look into a package like one of these: https://www.djangopackages.com/search/?q=review

TIA,
Joel

Josh Cartmell

unread,
Oct 16, 2014, 2:34:32 PM10/16/14
to mezzani...@googlegroups.com
Hey Joel, Mezzanine doesn't provide this out of the box, but it shouldn't be very hard to add by adding Comments and Ratings (https://mezzanine.jupo.org/docs/utilities.html#threaded-comments) to a User profile (https://mezzanine.jupo.org/docs/user-accounts.html#profiles).

--
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 mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joel Gwynn

unread,
Oct 17, 2014, 10:42:35 AM10/17/14
to mezzani...@googlegroups.com
Thanks, Josh.  When I added this feature, I got this error on submitting a comment: "MyProfile object has no attribute 'get_absolute_url'".  I added that method to my model, and now it works.  Is that expected?

--
You received this message because you are subscribed to a topic in the Google Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mezzanine-users/XG1hUSFpJFY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mezzanine-use...@googlegroups.com.

Josh Cartmell

unread,
Oct 17, 2014, 11:10:21 AM10/17/14
to mezzani...@googlegroups.com
Yeah I think so.  Here's what I've done in the past:

    @models.permalink
    def get_absolute_url(self):
        return ("profile", (), {"username": self.user.username})

I don't remember it off the top of my head, but there is a setting that toggles whether or not profiles are publicly viewable.
Reply all
Reply to author
Forward
0 new messages